donnerpeter commented on a change in pull request #2351:
URL: https://github.com/apache/lucene-solr/pull/2351#discussion_r574345261



##########
File path: 
lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/SpellChecker.java
##########
@@ -68,11 +68,12 @@ private boolean spellClean(String word) {
     }
 
     char[] wordChars = word.toCharArray();
-    if (dictionary.isForbiddenWord(wordChars, wordChars.length)) {
-      return false;
+    Boolean simpleResult = checkSimpleWord(wordChars, wordChars.length, null);
+    if (simpleResult != null) {
+      return simpleResult;
     }
 
-    if (checkWord(wordChars, wordChars.length, null)) {

Review comment:
       inlined




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to