4

Would you know where I could get a command line spellchecker (Windows binary if possible) that I can use in noninteractive mode for Finnish (in order to filter a list of strings that can be words or nonwords)?

I heard that Hunspell was inappropriate for Finnish.
I tried Aspell but I am not satisfied with the result ("tainnuttaa" is considered as a mispelled word for instance).

1
  • Sounds like the main issue is finding a good Aspell dictionary for Finnish: you might want to ask for one on the opendata SE. Commented Jul 26, 2014 at 20:20

2 Answers 2

1

A five step process:

  1. Install Python for windows.
  2. Install pyEnchant from here or with pip install pyenchant.
  3. Add the dictionary from here per these instructions.
  4. Make sure that you have both python and its scripts directory on your path, if you used the default installation, these will be C:\python and C:\python\scripts on windows.
  5. Write a simple script to process words you type, words from the command line or the words in a file the tutorials should give you a very good starting point. e.g.:

    import sys
    import enchant
    
    d = enchant.Dict("fi_FI")
    
    if len(sys.argv) < 2:
        print "To use this script supply the words to check on the command line"
    for word in sys.argv[1:]:
        print word, d.check(word)
    
3
  • Thank you very much for your clear answer! Unfortunately I did all the above steps and Python returns the following code after "import enchant":` File "c:\Python27\lib\site-packages\enchant_init_.py", line 92, in <module> from enchant import _enchant as _e File "c:\Python27\lib\site-packages\enchant_enchant.py", line 102, in <module > raise WinError() WindowsError: [Error 193] <no description>`
    – user6703
    Commented Jul 26, 2014 at 22:26
  • I solved the problem with Enchant. It was not working with Python 64bits. Unfortunately enchant cannot find the finnish dictionary. I looked in the fi_FI.zip archive and observed that the files were empty. I'm trying with this one.
    – user6703
    Commented Jul 27, 2014 at 9:23
  • You need the windows build of libvokko from here: puimula.org/htp/testing/voikko-sdk/win-crossbuild for the backend. Commented Jul 27, 2014 at 9:59
1

Tmispell is an ispell wrapper which uses Voikko spell-checking system to do the actual spell-checking for Finnish language.
Tmispell is a transparent wrapper for Ispell, other programs that would normally use Ispell will automatically use Tmispell (and therefore Voikko) without any changes needed.

For more information visit this link: http://manpages.ubuntu.com/manpages/hardy/man1/tmispell.1.html

I hope your problem will resolve out.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.