public double getValue(Document doc) throws EventGenerationException {
   double wordCount = wordCounter.getValue(doc);
   double sentenceCount = sentenceCounter.getValue(doc);
   EventSet syllables = syllablesDriver.createEventSet(doc);
   for (int i = syllables.size() - 1; i >= 0; i--) {
     if (Integer.parseInt(syllables.eventAt(i).toString()) < 3) {
       syllables.removeEvent(syllables.eventAt(i));
     }
   }
   double complexWordsCount = syllables.size();
   return 0.4 * (wordCount / sentenceCount + 100 * complexWordsCount / wordCount);
 }