codeforboston / legalhousing

MIT License
10 stars 27 forks source link

implement PhraseListing for 'illegal' phrases found in listings; added method for phrase counts #103

Closed smithWEBtek closed 7 years ago

smithWEBtek commented 7 years ago
  1. Updated method: 'listing.illegal?' method to implement PhraseListing join table entry; by adding a unique entry for each instance of a phrase appearing in a listing description.
  2. Added method: Listing.set_discriminatory, to provide a method to run all Listings through 'listing.illegal?' method.
  3. Added method: Phrase.phrase_counts, which returns hash of key/value pairs (phrases and counts) derived from PhraseListing table.
smithWEBtek commented 7 years ago

added update to Phrase test to count Words.txt before comparing count after import