Class: Wikipedia::VandalismDetection::Features::RemovedWords
- Defined in:
- lib/wikipedia/vandalism_detection/features/removed_words.rb
Overview
This feature computes the number of removed words in the edit’s new revision.
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#calculate(edit) ⇒ Object
10 11 12 13 14 |
# File 'lib/wikipedia/vandalism_detection/features/removed_words.rb', line 10 def calculate(edit) super edit.removed_words.count end |