donnerpeter commented on code in PR #975:
URL: https://github.com/apache/lucene/pull/975#discussion_r906644498


##########
lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/Hunspell.java:
##########
@@ -340,9 +339,14 @@ public List<AffixedWord> analyzeSimpleWord(String word) {
     return result;
   }
 
-  private AffixedWord.Affix toPresentableAffix(int affixId) {
-    char flag = dictionary.affixData(affixId, AFFIX_FLAG);
-    return new 
AffixedWord.Affix(dictionary.flagParsingStrategy.printFlag(flag));
+  /**
+   * Generate all word forms for all dictionary entries with the given root 
word. The result order
+   * is stable but not specified. This is equivalent to "unmunch" from the 
"hunspell-tools" package.
+   *
+   * @see WordFormGenerator for finer-grained APIs
+   */
+  public List<AffixedWord> expandRoot(String root) {

Review Comment:
   I named it after a similar Hunspell/C++ function. But your suggestion seems 
even more comprehensive, thanks!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to