Skip to content

client9/gospell

Repository files navigation

gospell

Build Status Go Report Card GoDoc Coverage license

pure golang spelling dictionary based on hunspell dictionaries.

NOTE: I'm not an expert in linguistics nor spelling. Help is very welcome!

What is hunspell?

NOTE: This is not affiliated with Hunspell although if they wanted merge it in as an official project, I'd be happy to donate the code (although it's in no shape to do so right now).

Where can I get English dictionaries?

The world of spelling dictionaries is surprisingly complicated, as "lists of words" are frequently proprietary and with conflicting software licenses.

Kevin Atkinson

Kevin Atkinson maintains many open source lists via the SCOWL project. The source code and raw lists are available on GitHub kevina/wordlist

Marco A.G.Pinto

Marco maintains the released dictionaries for Firefox and Apache Open Office. The word lists appears to be actively updated.

https://github.com/marcoagpinto/aoo-mozilla-en-dict

Open Office

http://extensions.openoffice.org/en/project/english-dictionaries-apache-openoffice

The downloaded file has a .oxt extension but it's a compressed tar file. Extract the files using:

mkdir dict-en
cd dict-en
tar -xzf ../dict-en.oxt

Chromium

The Chrome/Chromium browser uses Hunspell and it's source tree contains various up-to-date dictionaries, some with additional words. You can view them at chromium.googlesource.com and you can check them out locally via

git clone --depth=1 https://chromium.googlesource.com/chromium/deps/hunspell_dictionaries

More information can be found in the chromium developer guide

About

pure golang spelling based on hunspell dictionaries

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published