Class: RMMSeg::LAWLRule
- Inherits:
-
Object
- Object
- RMMSeg::LAWLRule
- Defined in:
- lib/rmmseg/lawl_rule.rb
Overview
Largest average word length rule.
Class Method Summary collapse
Class Method Details
.filter(chunks) ⇒ Object
6 7 8 9 10 |
# File 'lib/rmmseg/lawl_rule.rb', line 6 def self.filter(chunks) chunks.take_highest { |a, b| Chunk::average_length(a) <=> Chunk::average_length(b) } end |