def __nameToWordnetCode(self, name):
        """
        It returns the wordnet code for a given language name
        """
        if not self.__isLanguageAvailable(language_name=name):
            raise Exception("Wordnet code not found for the language name %s " % name)
        name = name.lower()
        languageShortCode = AVAILABLE_LANGUAGES_NAMES[name]

        wordnetCode = self.__shortCodeToWordnetCode(code=languageShortCode)
        return wordnetCode