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); }
public SearchFacade(StoreHandler storeHandler) { this.storeHandler = storeHandler; spelling = null; // will initialzed only when first needed; }