This project is to write a PHP script I could do myself but I'm busy on another project and I need it fast.
I have a list of keywords and key phrases (one, two or 3 word phrases).
I have an article say 500 words.
I need a script that loops through the array of keywords and checks for the number of occurrences of each in the text. It then returns an array of say the 5 key phrases that occur most frequently.
That's it, simple.
I'd like the script to use regex and will reject anything that splits the article into tokens, creates an array and compares the article array with the keyword array.
I need this done fast.