public static double calculateWordRankAverage(String text) {
		double rank = 0;
		String[] words = Database.simplifyText(text).split(" ");
		for (String word : words) {

			rank += 1.0 / Database.WORD_STATS.get(word);
		}
		double value = rank / words.length;
		if (value != value || Double.isInfinite(value))
			value = 0;
		return new BigDecimal(value).round(new MathContext(3)).doubleValue();
	}