Good try @Krazay
Yes, this is indeed possible and as Steve says almost anything is. What I would suggest thought is to have a go at it yourself (at least get it up and running with some design) and then ask if you get stuck.
You can store your words in an array and then check the user input against those words (no need for MySQL) or as Steve says store them in a text file and check against that. Many ways to achieve the results.
As I said though. Get something going and then come back for some help.