Python Forum
Switching Characters - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Switching Characters (/thread-9587.html)



Switching Characters - SteampunkMaverick12 - Apr-17-2018

I am making a latin to runic translator and i want to know how to switch characters in a user inputted string into its corresponding characters in another writing system. e.g all 'm' becomes 'n' and all 'oi' becomes 'l' like man to nan and soil to sll.


RE: Switching Characters - Larz60+ - Apr-17-2018

Another way to go about this type of application may be through Natural Language Processing.
There is a well known and highly praised package available for this NLTK see: https://www.nltk.org/
And see article: https://impythonist.wordpress.com/2014/02/11/language-translation-with-python/
Above article hasn't been worked on since 2014, so not a good choice.
This video: https://www.youtube.com/watch?v=FLZvOKSCkxY is the start of a complete tutorial 20+ videos looks more promising.


RE: Switching Characters - SteampunkMaverick12 - Apr-23-2018

(Apr-17-2018, 08:20 PM)Larz60+ Wrote: Another way to go about this type of application may be through Natural Language Processing.
There is a well known and highly praised package available for this NLTK see: https://www.nltk.org/
And see article: https://impythonist.wordpress.com/2014/02/11/language-translation-with-python/
Above article hasn't been worked on since 2014, so not a good choice.
This video: https://www.youtube.com/watch?v=FLZvOKSCkxY is the start of a complete tutorial 20+ videos looks more promising.

im only looking for character switching. As in .replace() but for the entire alphabet both lower and upper case.