Phrase matching updates

I still feel that this could be made to work better but i want to get
something out that I can let run for a few hours to test.