greeklish 0.0.2 greeklish: ^0.0.2 copied to clipboard
Given a greek work will generate greeklish versions. Helpful for doing client searching and want to support greeklish input.
Greeklish Generator #
Transforms a greek word into greeklish versions.
Getting Started #
Greeklish.generate("αυτοκινητο")
will produce
[
"autokinhto",
"aftokinhto",
"avtokinhto",
"aytokinhto",
"autokinito",
"aftokinito",
"avtokinito",
"aytokinito",
]
You can pass a mix of greek and latin characters. Latin characters will be ignored.
Does not preserve the case of the input word. All generated words will be in lower case.
TODO #
- Preserve case
- Add stemming ( plurals and such https://github.com/skroutz/greeklish/blob/master/lib/greeklish/greek_reverse_stemmer.rb )
Inspiration #
The project was based on https://github.com/skroutz/greeklish