Class: Wikipedia::VandalismDetection::Features::InsertedWords

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

#count

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