private float boostByQuestionMark() { float questionMarkAmplifier = 0.0f; int questionMarkCount = TextProperties.countLetter(this._inputString, "?"); if (questionMarkCount > 1) { questionMarkAmplifier = (questionMarkCount <= 3) ? questionMarkCount * Utils.QUESTION_BOOST_COUNT_3 : Utils.QUESTION_BOOST; } return(questionMarkAmplifier); }
private float boostByExclamation() { int exclamationCount = TextProperties.countLetter(this._inputString, "!"); return(Math.Min(exclamationCount, 4) * Utils.EXCLAMATION_BOOST); }