class Odyssey::Formula

Public Instance Methods

name() click to toggle source
# File lib/odyssey/formulas/formula.rb, line 29
def name
  'Generic'
end
score(text, stats) click to toggle source

text will be a Hash like so: data = {

'raw' => String,
'words' => Array,
'sentences' => Array,
'syllables' => Array

}

stats will be a Hash like so: {

'string_length' => Fixnum,
'letter_count' => Fixnum,
'syllable_count' => Fixnum,
'word_count' => Fixnum,
'sentence_count' => Fixnum,
'average_words_per_sentence' => Float,
'average_syllables_per_word' => Float

}

# File lib/odyssey/formulas/formula.rb, line 21
def score(text, stats)
  0
end
score_by_sentence(text, stats_split) click to toggle source
# File lib/odyssey/formulas/formula.rb, line 25
def score_by_sentence(text, stats_split)
  0
end