Method: Bable::Index::Ari#calc

Defined in:
lib/bable/index/ari.rb

#calcObject



7
8
9
10
# File 'lib/bable/index/ari.rb', line 7

def calc
  (4.71 * text.characters_count / text.words_count +
    0.5 * text.words_count / text.sentences_count - 21.43).round(2)
end