Giter Site home page Giter Site logo

hunspell.netcore's Introduction

Hunspell .NET Core

A .NET port of Hunspell for .NET and .NET Core

Download and install with NuGet: Hunspell.NetCore

Build status NuGet version

Features

  • Reads Hunspell DIC and AFF file formats
  • Supports checking and suggesting words
  • Ported to fully managed C#
  • Confusing LGPL, GPL, MPL tri-license
  • Compatible with .NET Core
  • Compatible with multiple .NET framework versions
  • Uses .NET to handle cultures and encodings

License

"It's complicated"

Read the license: LICENSE

This library was ported from the original Hunspell source and as a result is licensed under an MPL, LGPL, and GPL tri-license. Read the LICENSE file to be sure you can use this library.

Quick Start Example

using Hunspell;

namespace ConsoleApp1
{
    public class Program
    {
        static void Main(string[] args)
        {
            var hunspell = HunspellDictionary.FromFile(@"English (British).dic");
            bool notOk = hunspell.Check("teh");
            var suggestions = hunspell.Suggest("teh");
            bool ok = hunspell.Check("the");
        }
    }
}

Upstream

To know how up to date this port is, check the hunspell-origin submodule.

Performance

"Good enough I guess"

The performance of this port while not fantastic relative to the original binaries and NHunspell is definitely acceptable. If you need better performance you should check out NHunspell.

Benchmark Hunspell.NetCore NHunspell
Dictionary Loads /s ๐Ÿข 2.2 ๐Ÿ‡ 15.92
Words Checked /s ๐Ÿข 560,499 ๐Ÿ‡ 965,254

Note: Measurements taken on a Intel 6700K with a 850 PRO 256GB.

hunspell.netcore's People

Contributors

aarondandy avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.