better lookup with accented character
Created by: knezi
Would be really nice if the dictionary supported lookup without need to write accented characters. E.g. When I write nadrazi, it found nádraží, nadrazí, nadrazi... I can think of following ways to do it:
- regular expression - [nň][aá][dď][rř][aá][zž][ií] (I'm not sure whether indexedDB support regexp)
- more queries - find nadrazi, nádraží
- I would take long time, maybe bisectional search would work (try to find n and ň a continue just if there are results, so then na, ná) - still probably to slow
- duplicate every words (it would be just twice bigger) - so there would be nádraží, nadrazi (but not nádrazi because it does not exist), and in nadrazi entry wouldn't be the translation but the link to the entry nádraží
I will try to investigate into it. Please add any suggestion you can think of.