Skip to content

rajeshgithub001/kblang

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kblang

Python Version License: MIT PyPI Version

A Python library to correct spelling errors caused by incorrect keyboard language selection

Description

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.

Features

  • 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.

Languages ​​and layouts supported in kblang

  • persian 🇮🇷 -> FaLayout class
  • english 🏴󠁧󠁢󠁥󠁮󠁧󠁿 -> EnLayout class
  • spanish 🇪🇸 -> SpLayout class
  • arabic 🇸🇦-> ArLayout class
  • italian 🇮🇹 -> ItLayout class
  • japanese 🇯🇵 -> JaLayout class

Installation Guide

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

How to use kblang

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.

Contribute

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.

Credits

Develoaped with tahairavani & alisaadati10

License

This is free software, licensed under the MIT license. You can view it on the kblang license page.

About

A Python library to correct spelling errors caused by incorrect language selection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%