barrust / pyspellchecker

Pure Python Spell Checking http://pyspellchecker.readthedocs.io/en/latest/
MIT License
710 stars 164 forks source link

User Interface #31

Closed iyayaya closed 5 years ago

iyayaya commented 5 years ago

Is there a way to make a user interface in this code? What plugins can you suggest? Thank you! And also, is there another scientific solution to use in correcting the problems in capitalization? Thanks!

barrust commented 5 years ago

Yes! It is definitely possible to use pyspellchecker inside a user interface! I am not sure what you mean by plugin, but there are some python bindings to common user interfaces but this is not really in the realm of pyspellchecker. If you want to see an example of a command line program, there is one in the quickstart.

As for the other question, it was decided to not deal with capitalization for several reasons: 1) Adding capitalization doubles the alphabet needed to search which increases the time to complete 2) Capitalization is finicky and can be changed based on context. From wiktionary.org:

Many common nouns may be used as proper nouns; for example, mother is a common noun, as in “His mother just turned sixty-five”, but may be used as a proper noun, as in “Have you seen Mother today?”. As in this example, common nouns are traditionally capitalized when used as proper nouns.

There are also similar cases in many other languages. I am not an expert so I do not want to comment on another method to handle capitalization.

iyayaya commented 5 years ago

Thank you very much for your response!

On Tue, Jan 29, 2019 at 9:14 PM Tyler Barrus notifications@github.com wrote:

Closed #31 https://github.com/barrust/pyspellchecker/issues/31.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/barrust/pyspellchecker/issues/31#event-2103601846, or mute the thread https://github.com/notifications/unsubscribe-auth/ApyAgHUuH5Ts5eAkNwi-ROtslGbQL3o5ks5vIEkmgaJpZM4aXTbA .