Ask coding questions

← Back to all posts
Brazilian Portuguese enchant library dictionary for anagram generator application
EduardoLoureiro (0)

Hi,

I'm learning Python and made a simple anagram generator application for words in English since it's the available language when I imported enchant library.

But I'd like to make a version with Brazilian words. How can I find and import a Brazilian Portuguese (pt_BR) dictionary so I have this language available through enchant library?

Thanks.

Comments
hotnewtop
robowolf (549)

Well you could use PyDictionary and then use dictionary.translateTo("language abbreviation"). Then instead of getting enlish permutations get every possible word, then check if it's in the dictionary.

EduardoLoureiro (0)

Thanks for the suggestion, @robowolf