Hi,
I am currently working on an automatic type (and spell) correction plugin for my text editor called UberWriter (
https://github.com/wolfv/uberwriter). It's a Markdown editor.
The idea is to replicate something ála OS X or Android spell correction.
I am wondering if there are some ideas how pressagio could be used or extended for this?
I have several ideas at the moment:
- Calculate a score based on levenshtein distance
- Modify the score based on key distance on the current keyboard layout
- And modify the score based on bi- and trigram frequencies
Also I think it's quite tedious to build the ngram database myself, so I am looking into importing a word frequency database from AnySoftKeyboard.
The biggest problem I have right now with presage and pressagio is that it's not possible to do a "fuzzy" search (or at least it doesn't seem so).
E.g. if I want to type "something" I would (in the right context) get the correct suggestion probably after typing "so". But if I hit the second key wrong "sp" then I would never get that suggestion.
I am wondering if there are any ideas how to implement something like that? I would also like to contribute it back to pressagio if thats desired.
Cheers,
Wolf