A Python library to correct spelling errors caused by incorrect keyboard language selection
With kblang you can change the keyboard language of a text to other languages
It is very common that users do not select the correct language when typing with the keyboard and the text they type is completely meaningless
For example, they want to write Hello, how are you
But the keyboard language is Persian and it is typed : "عثممخ اخس شقث غخع"
But you can now use kblang to convert user input into what it should be when searching or entering other information.
- Modular support for different keyboards and languages
- Ability to easily add new keyboards
- Text language detection with dedicated language detector module
- Use the keyboard layout however you like. You can use it for your own custom modules.
- persian 🇮🇷 -> FaLayout class
- english 🏴 -> EnLayout class
- spanish 🇪🇸 -> SpLayout class
- arabic 🇸🇦-> ArLayout class
- italian 🇮🇹 -> ItLayout class
- japanese 🇯🇵 -> JaLayout class
To install, you need Python 3.6 or higher, and you can install kblang with pip or manually from this GitHub repository.
install with pip:
pip install kblang
OR install from this repository:
pip install git+https://github.com/tahairavani/kblang.git
To use kb lang, you can import its classes after installation and enjoy it easily (:
from kblang.converter import ConvertLang # Converter class
from kblang.lang_ditect import LanguageDitector # for ditect language of text
#and more classes in kblang
To learn more about the methods of this library, you can read the user guide.
To contribute, you can view the issues, fork this repository, and then submit your changes as a pull request to this repo.
I'll be happy to merge them.
You can also read this guide.
Develoaped with tahairavani & alisaadati10
This is free software, licensed under the MIT license. You can view it on the kblang license page.