Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.