Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenwrite.git

Upgrades KeenSpell library

AuthorDaveJarvis <email>
Date2025-09-07 03:40:11 GMT-0700
Commit443ccd5fcacc4c44dc9f7fbcc7af29762250ca70
Parent29cbd78
Delta10 lines added, 2 lines removed, 8-line increase
src/main/java/com/keenwrite/spelling/impl/SymSpellSpeller.java
import java.util.Map;
+import static com.keenwrite.events.StatusEvent.clue;
import static io.gitlab.rxp90.jsymspell.Verbosity.ALL;
import static io.gitlab.rxp90.jsymspell.Verbosity.CLOSEST;
final var words = lookup( lexeme, CLOSEST );
- return !words.isEmpty() && lexeme.equals( words.get( 0 ).getSuggestion() );
+ return !words.isEmpty() && lexeme.equals( words.getFirst().getSuggestion() );
}
assert v != null;
- return mSymSpell.lookup( lexeme, v );
+ try {
+ return mSymSpell.lookup( lexeme, v );
+ }
+ catch( final NotInitializedException ex ) {
+ clue( ex );
+ }
+
+ return new ArrayList<>();
}
}
docs/user-manual.pdf
Binary files differ