Uses of Class
org.apache.lucene.analysis.hunspell.NGramFragmentChecker
Package
Description
A Java implementation of Hunspell stemming and
spell-checking algorithms (
Hunspell
), and a stemming
TokenFilter (HunspellStemFilter
) based on it.-
Uses of NGramFragmentChecker in org.apache.lucene.analysis.hunspell
Modifier and TypeMethodDescriptionstatic NGramFragmentChecker
NGramFragmentChecker.fromAllSimpleWords
(int n, Dictionary dictionary, Runnable checkCanceled) Iterate the whole dictionary, derive all word forms (usingWordFormGenerator
), vary the case to get all words acceptable by the spellchecker, and create a fragment checker based on theirn
-grams.static NGramFragmentChecker
NGramFragmentChecker.fromWords
(int n, Collection<? extends CharSequence> words) Create a fragment checker for n-grams found in the given words.