#!/usr/bin/perl open F, "r/pos/part-of-speech.txt"; while () { chop; next if not /^([^\t]+)\tN.*$/; print "$1\n"; }