|Think about Loose Coupling|
Re: Comparing sets of phrases stored in a database?by erix (Vicar)
|on Sep 30, 2012 at 20:33 UTC||Need Help??|
In PostgreSQL there are some text tools that may already be adequate for such a database:
The built-in full-text search (includes indexing, parsing, stemming, ranking). 
The extension pg_trgm (trigrams). Can be used to index, provides similarity functions. 
The extension fuzzystrmatch (with soundex, levenshtein etc.).