Class: Wikipedia::VandalismDetection::Features::InsertedWords
- Defined in:
- lib/wikipedia/vandalism_detection/features/inserted_words.rb
Overview
This feature computes the number of inserted 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/inserted_words.rb', line 10 def calculate(edit) super edit.inserted_words.count end |