descriptorsFogus.frink

Download or view 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]


Download or view 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 20143 days, 10 hours, 16 minutes ago.