I'm planning to automate the FAQ section in my site where the questions and answers stored in standard DB and would like to get the input question from the user and recognize it (algorithm) and get the appropriate answer for that and return it to the user. Approach :
get input string -> parse -> check words with each question in DB ->reply the answer with most matched question
Which algorithm suites better for this approach to recognize the question from the user against the DB?