예제 #1
0
        private string TryCorrectNameBySpellChecking(string name)
        {
            if (spelling == null)
            {
                spelling = new Spelling();
            }

            string result = spelling.CorrectSentence(name);

            result.Trim(); // spelling returns " " if no answer

            return(result);
        }
예제 #2
0
 public SearchFacade(StoreHandler storeHandler)
 {
     this.storeHandler = storeHandler;
     spelling          = null; // will initialzed only when first needed;
 }