### Description I have observed in below file that we are using around 44 if-else statements which is un-optimized as well as a bad code practice. https://github.com/apache/lucene/blob/b843b4c6c395cff92b72997c8f59b0579d68365d/lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/Dictionary.java#L359 I think this should be solvable easily and therefore creating a small PR.
Description
I have observed in below file that we are using around 44 if-else statements which is un-optimized as well as a bad code practice.
lucene/lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/Dictionary.java
Line 359 in b843b4c
I think this should be solvable easily and therefore creating a small PR.