descriptorsFogus.frink

View or download descriptorsFogus.frink in plain text format

/** 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]


View or download descriptorsFogus.frink in plain text format


This is a program written in the programming language Frink.
For more information, view the Frink Documentation or see More Sample Frink Programs.

Alan Eliasen was born 18663 days, 1 hours, 53 minutes ago.