Added a script to filter infrequent phrases