Hi all,

I opened a PR a few weeks ago that adds an Albanian analyzer to
analysis-common, and the stale bot has just pointed me here:

https://www.google.com/url?q=https://github.com/apache/lucene/pull/16957&source=gmail&ust=1795052341026000&sa=E

Lucene has no Albanian support today. The PR adds
org.apache.lucene.analysis.sq with the usual pieces: AlbanianAnalyzer,
a normalization filter, a light stemmer with its filter and factories,
and a stopword list. It follows the structure of the existing light
stemmers, so it should look familiar to anyone who has reviewed one.

A few things that may make it easier to review:

- The stemmer is rule based and idempotent. It strips inflection, at
most one derivational suffix per round, then normalizes the stem.
- Tests include a 45,687 word regression vocabulary in the same
zip format the other languages use, plus unit tests for each rule.
- I checked the rules against Wiktionary paradigm tables and a
204k form Hunspell word list, and audited the whole vocabulary for
unrelated words that collapse to the same stem. The PR description
lists what was fixed and what I left alone on purpose.
- CI is green and the branch is a single commit.

I am a native speaker, so I am happy to answer any question about the
language side, and I will turn around review feedback quickly. There
is a matching Lucene.NET port (apache/lucenenet#1535) that is waiting
on the outcome here, so the two stay in sync.

If someone familiar with the analysis module has time for a look, I
would really appreciate it.

Thanks,
Visar Uruqi

Reply via email to