working on improved and more configurable phrase extraction algorithm