Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
require "set"
stopwords = Set[*"smart.txt").lines.reject{|x| x =~ /^#/}.map(&:strip)
STDIN.lines.each do |l|
c, t = l.split
puts l unless stopwords.include? t.strip
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.