/** * Computes the intensity modifier based on the word. * * @param word * {@link String} representing the word * @return double representing the modifier * @throws IOException */ public static function computeModifier($word) { if (Eklekt_Emotion_Utility_Heuristics::isIntensityModifier($word)) { return 1.5; } else { return 1.0; } }