Class: Wikipedia::VandalismDetection::Features::ArticleSize
- Defined in:
- lib/wikipedia/vandalism_detection/features/article_size.rb
Overview
This feature computes the size of the edit’s new revision text (article size).
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/article_size.rb', line 10 def calculate(edit) super edit.new_revision.text.size end |