• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

intl/H20-Oct-2021-22,71416,567

m4/H20-Oct-2021-11,99010,865

man/H20-Oct-2021-4,3843,941

po/H03-May-2022-2,0591,751

src/H20-Oct-2021-48,93244,022

tests/H20-Oct-2021-7,7306,553

ABOUT-NLSH A D20-Oct-202174.7 KiB1,0691,022

AUTHORSH A D20-Oct-2021177 64

AUTHORS.myspellH A D20-Oct-20212.7 KiB6852

BUGSH A D20-Oct-2021193 63

COPYINGH A D20-Oct-2021634 1310

COPYING.LGPLH A D20-Oct-202125.9 KiB516435

COPYING.MPLH A D20-Oct-202125.2 KiB471396

ChangeLogH A D20-Oct-202184.4 KiB1,9311,482

INSTALLH A D20-Oct-20219 KiB230175

Makefile.amH A D20-Oct-2021265 106

Makefile.inH A D20-Oct-202128.1 KiB882788

NEWSH A D20-Oct-202120.2 KiB651475

READMEH A D20-Oct-20215 KiB183122

README.myspellH A D20-Oct-20212.1 KiB7051

THANKSH A D20-Oct-20212.2 KiB137125

TODOH A D20-Oct-2021154 54

aclocal.m4H A D20-Oct-202141 KiB1,104999

config.guessH A D20-Oct-202144.2 KiB1,5591,352

config.h.inH A D20-Oct-202112.5 KiB427308

config.rpathH A D20-Oct-202117.9 KiB667563

config.subH A D20-Oct-202130.5 KiB1,5531,412

configureH A D20-Oct-2021689.5 KiB23,34118,441

configure.acH A D20-Oct-20213.2 KiB119101

depcompH A D20-Oct-202114.8 KiB523330

hunspell.pc.inH A D20-Oct-2021269 119

install-shH A D20-Oct-20219 KiB323188

license.hunspellH A D20-Oct-20212.1 KiB5655

license.myspellH A D20-Oct-20212.8 KiB6261

ltmain.shH A D20-Oct-2021237.5 KiB8,4076,475

missingH A D20-Oct-202110.4 KiB361270

mkinstalldirsH A D20-Oct-20213.3 KiB151102

README

1About Hunspell
2--------------
3
4Hunspell is a spell checker and morphological analyzer library and program
5designed for languages with rich morphology and complex word compounding or
6character encoding. Hunspell interfaces: Ispell-like terminal interface
7using Curses library, Ispell pipe interface, OpenOffice.org UNO module.
8
9Hunspell's code base comes from the OpenOffice.org MySpell
10(http://lingucomponent.openoffice.org/MySpell-3.zip). See README.MYSPELL,
11AUTHORS.MYSPELL and license.myspell files.
12Hunspell is designed to eventually replace Myspell in OpenOffice.org.
13
14Main features of Hunspell spell checker and morphological analyzer:
15
16- Unicode support (affix rules work only with the first 65535 Unicode characters)
17
18- Morphological analysis (in custom item and arrangement style) and stemming
19
20- Max. 65535 affix classes and twofold affix stripping (for agglutinative
21  languages, like Azeri, Basque, Estonian, Finnish, Hungarian, Turkish, etc.)
22
23- Support complex compoundings (for example, Hungarian and German)
24
25- Support language specific features (for example, special casing of
26  Azeri and Turkish dotted i, or German sharp s)
27
28- Handle conditional affixes, circumfixes, fogemorphemes,
29  forbidden words, pseudoroots and homonyms.
30
31- Free software (LGPL, GPL, MPL tri-license)
32
33Compiling on Unix/Linux
34-----------------------
35
36./configure
37make
38make install
39
40For dictionary development, use the --with-warnings option of configure.
41
42For interactive user interface of Hunspell executable, use the --with-ui option.
43
44The developer packages you need to compile Hunspell's interface:
45
46glibc-devel
47
48optional developer packages:
49
50ncurses (need for --with-ui), eg. libncursesw5 for UTF-8
51readline (for fancy input line editing,
52  configure parameter: --with-readline)
53locale and gettext (but you can also use the
54  --with-included-gettext configure parameter)
55
56Hunspell distribution uses new Autoconf (2.59) and Automake (1.9).
57
58Compiling on Windows
59--------------------
60
611. Compiling with Windows SDK
62
63Download the free Windows SDK of Microsoft, open a command prompt
64window and cd into hunspell/src/win_api. Use the following command
65to compile hunspell:
66
67vcbuild
68
692. Compiling in Cygwin environment
70
71Download and install Cygwin environment for Windows with the following
72extra packages:
73
74make
75gcc-g++ development package
76mingw development package (for cygwin.dll free native Windows compilation)
77ncurses, readline (for user interface)
78iconv (character conversion)
79
802.1. Cygwin1.dll dependent compiling
81
82Open a Cygwin shell, cd into the hunspell root directory:
83
84./configure
85make
86make install
87
88For dictionary development, use the --with-warnings option of configure.
89
90For interactive user interface of Hunspell executable, use the --with-ui option.
91
92readline configure parameter: --with-readline (for fancy input line editing)
93
941.2. Cygwin1.dll free compiling
95
96Open a Cygwin shell, cd into the hunspell/src/win_api and
97
98make -f Makefile.cygwin
99
100Testing
101-------
102
103Testing Hunspell (see tests in tests/ subdirectory):
104
105make check
106
107or with Valgrind debugger:
108
109make check
110VALGRIND=[Valgrind_tool] make check
111
112For example:
113
114make check
115VALGRIND=memcheck make check
116
117Documentation
118-------------
119
120features and dictionary format:
121man 5 hunspell
122
123man hunspell
124hunspell -h
125http://hunspell.sourceforge.net
126
127Usage
128-----
129
130The src/tools dictionary contains ten executables after compiling
131(or some of them are in the src/win_api):
132
133affixcompress: dictionary generation from large (millions of words) vocabularies
134  analyze: example of spell checking, stemming and morphological analysis
135  chmorph: example of automatic morphological generation and conversion
136  example: example of spell checking and suggestion
137 hunspell: main program for spell checking and others (see manual)
138   hunzip: decompressor of hzip format
139     hzip: compressor of hzip format
140makealias: alias compression (Hunspell only, not back compatible with MySpell)
141    munch: dictionary generation from vocabularies (it needs an affix file, too).
142  unmunch: list all recognized words of a MySpell dictionary
143wordforms: word generation (Hunspell version of unmunch)
144
145After compiling and installing (see INSTALL) you can
146run the Hunspell spell checker (compiled with user interface)
147with a Hunspell or Myspell dictionary:
148
149hunspell -d en_US text.txt
150
151or without interface:
152
153hunspell
154hunspell -d en_UK -l <text.txt
155
156Dictionaries consist of an affix and dictionary file, see tests/
157or http://wiki.services.openoffice.org/wiki/Dictionaries.
158
159Using Hunspell library with GCC
160-------------------------------
161
162Including in your program:
163#include <hunspell.hxx>
164
165Linking with Hunspell static library:
166g++ -lhunspell example.cxx
167
168Dictionaries
169------------
170
171Myspell & Hunspell dictionaries:
172http://extensions.libreoffice.org
173http://cgit.freedesktop.org/libreoffice/dictionaries
174http://extensions.openoffice.org
175http://wiki.services.openoffice.org/wiki/Dictionaries
176
177Aspell dictionaries (need some conversion):
178ftp://ftp.gnu.org/gnu/aspell/dict
179Conversion steps: see relevant feature request at http://hunspell.sf.net.
180
181László Németh
182nemeth at numbertext org
183

README.myspell

1MySpell is a simple spell checker that uses affix
2compression and is modelled after the spell checker
3ispell.
4
5MySpell was written to explore how affix compression
6can be implemented.
7
8The Main features of MySpell are:
9
101. written in C++ to make it easier to interface with
11   Pspell, OpenOffice, AbiWord, etc
12
132. it is stateless, uses no static variables and
14   should be completely reentrant with almost no
15   ifdefs
16
173. it tries to be as compatible with ispell to
18   the extent it can.  It can read slightly modified
19   versions of munched ispell dictionaries (and it
20   comes with a munched english wordlist borrowed from
21   Kevin Atkinson's excellent Aspell.
22
234. it uses a heavily modified aff file format that
24   can be derived from ispell aff files but uses
25   the iso-8859-X character sets only
26
275. it is simple with *lots* of comments that
28   describes how the affixes are stored
29   and tested for (based on the approach used by
30   ispell).
31
326. it supports improved suggestions with replacement
33   tables and ngram-scoring based mechanisms in addition
34   to the main suggestion mechanisms
35
367. like ispell it has a BSD license (and  no
37   advertising clause)
38
39But ... it has *no* support for adding words
40to a personal dictionary, *no* support for converting
41between various text encodings, and *no* command line
42interface (it is purely meant to be a library).
43
44It can not (in any way) replace all of the functionality
45of ispell or aspell/pspell.  It is meant as a learning
46tool for understanding affix compression and for
47being used by front ends like OpenOffice, Abiword, etc.
48
49MySpell has been tested under Linux and Solaris
50and has the world's simplest Makefile and no
51configure support.
52
53It does come with a simple example program that
54spell checks some words and returns suggestions.
55
56To build a static library and an example
57program under Linux simply type:
58
59tar -zxvf myspell.tar.gz
60cd myspell2
61make
62
63To run the example program:
64./example ./en_US.aff ./en_US.dic checkme.lst
65
66Please play around with it and let me know
67what you think.
68
69Please see the file CONTRIBUTORS for more info.
70