Class: Wikipedia::VandalismDetection::Features::RemovedWords

Inherits:
Base
  • Object
show all
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

#count

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