How to make a very big dictionary available to every program?
Posted on 2011-05-11
I need to use Java load a very big dictionary (tens of thousands of words) into some Java data type, and likely load it into memory so that all programs (some are web applications and the other are just back-end programs) can easily access to the dictionary.
One example is that when users input some keywords into an Input box on the web page, our program can use the dictionary to check if some keywords are spelled wrong and if some keywords are the most frequently used keywords.
The way that I am thinking of is to use hashset and load the dictionary into the hashset object. But how to make the object loaded once and how to make it available to all the other programs seem to be a challenge to me. Please help.