Search code examples
iphoneiosobjective-cdictionaryhunspell

Custom Dictionary Implementation: Can I Create My Custom affix file?


I am using this Hunsplell iOS Implementation.

And I want to create my custom dictionary and affix file with my choice of words.

I know how to create .dic files but I have no idea how to generate the affix file with .aff extension for that respective .dic file. Is there any tool or technique which I am not getting by googling it?


Solution

  • Ok the solution which worked for me is in two parts:

    1. Writing .aff file by your own is a pretty lengthy and difficult task. So if you want to create your own custom dictionary(provided it is not very complex and deep in lexical terms) just create an empty file in notepad and save it with .aff extension, it will work fine.

    2. I came through this problem because I wanted to merge two different Hunspell Dictionaries with their .aff and .dic files. And I found a brilliant FREE Hunspell Merge tool which can merge Hunspell Dictionaries (both .aff and .dic files) generating combined .aff and .dic files.