34

What's the best spell checking library for C# / .net?

(This will be web-based, so the built in spell check for WPF won't work.)

mmcdole
  • 91,488
  • 60
  • 186
  • 222
steve
  • 1,545
  • 4
  • 18
  • 28

8 Answers8

36

I've made a .NET version (wrapper) of the Open Office / Google Chrome ... spell checker Hunspell. It is called NHunspell and can be used with C#/ VB / .... The Open Office hyphenator "Hyphen" is also included. All Open Office dictionaries work. It is free (open source LGPL / MPL licensed).

Thomas Maierhofer
  • 2,665
  • 18
  • 33
  • I've used this library in a recent project and it works well. Biggest issue seems to be the Open Office dictionaries are not very good. Lots of word misses and bad matches it seems. – Rick Strahl Dec 10 '15 at 02:15
6

I have used Aspell.net before with some success.

Jason Jackson
  • 17,016
  • 8
  • 49
  • 74
3

I have used NetSpell in the past with success. http://sourceforge.net/projects/netspell/

ChrisPelatari
  • 689
  • 5
  • 7
  • Just tried this one, it seems to work pretty well for very basic usage. – Charlie Apr 15 '09 at 21:50
  • Jason Jackson or @blue_fenix, can you please show a snippet or point out what I'm missing in NetSpell? http://stackoverflow.com/questions/11751263/netspell-spellchecker – strider Aug 01 '12 at 14:43
1

For a custom solution I created a Web Service which then wrapped the WPF libraries. This gives the ability to use the built-in spell checking with ASP.NET applications/web sites by simply calling the Web Service.

An easy to follow and basic idea for the wrapping can be found here:

http://www.quicklearn.com/blogsamples/SpellCheck.aspx

Bryan Allred
  • 606
  • 4
  • 5
1

There is a aspell .net wrapper.

http://aspell-net.sourceforge.net/

chad
  • 717
  • 1
  • 9
  • 23
0

For a commercial solution:

I am currently evaluating RapidSpell and it seems be what I need. I will say that their demo install seemed to trash my third-party installs. (Something did, and I noticed it right after installing their demo. But that may have been coincidence.)

Khadaji
  • 2,147
  • 2
  • 17
  • 19
0

Telerik's control suite for ASP.NET comes with a spell-checker. You might check them out.

http://demos.telerik.com/aspnet-ajax/Spell/Examples/Overview/DefaultCS.aspx

Kevin Babcock
  • 10,187
  • 19
  • 69
  • 89
-1

You could embed the WPF spell checker using silverlight. Otherwise you might want to look at commercial products that are already available such as Telerik's ASP.NET AJAX Controls.

Chris Marisic
  • 32,487
  • 24
  • 164
  • 258