Class: Wikipedia::VandalismDetection::Features::CommentLength
- Defined in:
- lib/wikipedia/vandalism_detection/features/comment_length.rb
Overview
This feature computes the byte length of the edit’s new revision’s comment.
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#calculate(edit) ⇒ Object
10 11 12 13 |
# File 'lib/wikipedia/vandalism_detection/features/comment_length.rb', line 10 def calculate(edit) super edit.new_revision.comment.clean.bytesize end |