alroman/CS130-Mashup — comment on commit eec00f30a1004d0465b2b226d4b58ec3c5c226d5
File: web/application/libraries/Helper.php line 31
By alroman:

Yeah, this is a very simple algorithm, and it will miss 'free food'... We can probably do preg_replace() if we detect a phrase (i.e. more than 1 word in the keywords array)... OR we can simply break up phrases into tokens (discard 'a', 'i', 'we', etc..). The problem with this is that it'll get 'free' or 'food' even if they're not together..