Package com.swabunga.spell.engine

Examples of com.swabunga.spell.engine.Configuration


    public ResponseEntity<String> checkWordList(@RequestParam("words") String words){

    JSONObject response = new JSONObject();

    SpellChecker spellChecker = new SpellChecker();
        Configuration cfg = spellChecker.getConfiguration();
        cfg.setBoolean(Configuration.SPELL_IGNOREUPPERCASE, false);
       
        Checker chk = new Checker();
        spellChecker.addSpellCheckListener(chk);
        for (SpellDictionary dictionary : dictionaries) {
            spellChecker.addDictionary(dictionary);
View Full Code Here


    public ResponseEntity<String> suggestForWord(@RequestParam("word") String word){

    JSONObject response = new JSONObject();
   
    SpellChecker spellChecker = new SpellChecker();
        Configuration cfg = spellChecker.getConfiguration();
        cfg.setBoolean(Configuration.SPELL_IGNOREUPPERCASE, false);
       
        Suggester sug = new Suggester();
        spellChecker.addSpellCheckListener(sug);
        for (SpellDictionary dictionary : dictionaries) {
            spellChecker.addDictionary(dictionary);
View Full Code Here

TOP

Related Classes of com.swabunga.spell.engine.Configuration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.