def METHOD_NAME(self):
    # Verify our ability to find language names inside text.
    def find(text, expect):
        match = LanguageNames.name_re.search(text)
        if not match:
            return match
        return match.groups()
    find("books in Italian", ["Italian"])
    find("Chinese Cooking", ["Chinese"])
    find("500 spanish verbs", ["spanish"])
    # Only the first language is returned.
    find("books in japanese or italian", ["japanese"])
    find("english-russian dictionary", ["english"])
    # The language name must be a standalone word.
    find("50,000 frenchmen can't be wrong", None)
    find("visiting Thailand", None)