Created
January 27, 2009 00:15
-
-
Save DRMacIver/53071 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "set" | |
stopwords = Set[* | |
IO.read("smart.txt").lines.reject{|x| x =~ /^#/}.map(&:strip) | |
] | |
STDIN.lines.each do |l| | |
c, t = l.split | |
puts l unless stopwords.include? t.strip | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment