/** This is a simple program to try to test a hypothesis from @fogus: https://twitter.com/Frinklang/status/1219879910312800256 **/ use Words.frink word = ARGS@0 pattern = regex["\\b$word(s?)\\b", "i"] for line = lines["file:/home/eliasen/builds/ngrams/3grams.filtered.csv"] if line =~ pattern for w = split[%r/\s+/, line] if Words.isAdjective[w] println[line]