Got a working code which gives a list of words. Though I need to keep manually editing the filter threshold. And the result isnt entirely correct :/