added unique word ratio to match.rb