MihaiValentin / lunr-languages

A collection of languages stemmers and stopwords for Lunr Javascript library
Other
431 stars 163 forks source link

Armenian support #60

Open brockfanning opened 4 years ago

brockfanning commented 4 years ago

I would like to implement Armenian support, and I see that there is a Java stemmer in the jssnowball project: https://github.com/mazko/jssnowball/blob/master/snowball_cache/snowball_all/algorithms/armenian/stemmer.java

I'm new to this whole thing, so if anyone has already done this, I would greatly appreciate any tips. Otherwise, I'll get hacking.

v4nn4 commented 1 year ago

See https://github.com/MihaiValentin/lunr-languages/pull/96 for basic Armenian support, without stemmer. This library uses snowball-js rather than jssnowball, which directly transpiles from java. Both do not seem to be actively maintained, but in theory one could add the stemmer found in jssnowball in snowball-js. The integration here is straightforward once the stemmer is published in snowball-js.

MihaiValentin commented 1 year ago

PR is now merged, thanks!