I am using aspell in my application for spell checking (a c/c++ app), and I want to use it to find best alternatives in a custom work list. I don't want to use a standard dictionary, as I only want to find words in my word list. I can find ways of adding words to a dictionary (aspell_speller_add_to_personal and aspell_speller_add_to_session), but I don't know how to start with an empty dictionary that I can then populate at run time.
Has anybody done this, or know how to do it? Alternatively, any recommendations for algorithms for choosing a "best match" in a word list?