class UnitNormalizer {

    public static String detectUnit(String text) {
        for (String unit : ALL_UNITS) {
            if (PATTERNS.get(unit).matcher(text).find()) {
                return unit;
            }
        }

        return null;
    }

}