Articles → .NET → Spell checker using Hunspell C#
Spell checker using Hunspell C#
Getting components
Hunspell methods
Sample application
using System;
using System.Collections.Generic;
using NHunspell;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
using (Hunspell hunspell = new Hunspell("en_us.aff", "en_US.dic"))
{
bool result = hunspell.Spell("table");
List<string> suggestions = hunspell.Suggest("intance");
}
}
}
Output
Click to Enlarge