private SpellCheckResultsJson GetSuggestionsResponse(SpellCheckSuggestionsJson sp) { List<string> suggestedWords = new List<string>(); ; SpellCheckResultsJson results = new SpellCheckResultsJson(); // Get a list of suggestions on a word results.result = HunspellInstance.Suggest(sp.word); return results; }
private static SpellCheckSuggestionsJson BuildSuggestionRequest(JObject jsonRequest) { SpellCheckSuggestionsJson suggestionJson = new SpellCheckSuggestionsJson(); JToken parms; suggestionJson.Method = SpellCheckMethod.GetSuggestions; parms = jsonRequest["params"]; suggestionJson.Language = parms[0].Value<string>(); // The word that the user wants a list of suggestions for suggestionJson.word = parms[1].Value<string>(); return suggestionJson; }