Using hunspell in C

1.3k views Asked by At

I would like to use hunspell in my C program. I'm working in a Unix environment (shell) and it has already hunspell built in. I know I can use by typing hunspell filename at the command line, but I wanna know how to use it inside my program. Ultimately I want to store every dictionary word but first I just want to know how to import it into my program. Like is there #include type of thing?

1

There are 1 answers

5
SáT On BEST ANSWER

Yes, there's a hunspell API you can use through #include <hunspell/hunspell.h> The API details can be found at the hunspell documentation page (hunspell3.pdf). Examples are a bit scarce, but this or this should get you started.