Search code examples
pythonpython-3.xunicodepython-unicode

Import all letters of an alphabet of a certain language


Could it be possible to import all the possible letters (lowercase, uppercase, etc.) in an alphabet in a certain language (Turkish, Polish, Russian, etc.) as a python list? Is there a certain module to do that?


Solution

  • Your question ties into a larger problem - how alphabets of certain languages are stored in a computer, how they are represented, and (eventually) how they can be retrieved in Python?

    I suggest you read:

    The short answer is - "yes". But it depends on what you actually name an alphabet of the language (e.g. in some languages there are specific characters for punctuation. do you consider them as part of the alphabet in your application?) What do you need it for? If it is about language detection then there is a duplicate question. Your question is generic and without details and (best) a snippet it will be difficult to be answered satisfactorily for you.