static TimedCache> ai_smallerCategoryComparator_cache = new TimedCache(10.0); static Comparator ai_smallerCategoryComparator() { ret ai_smallerCategoryComparator_cache.get(f ai_smallerCategoryComparator_uncached); } static Comparator ai_smallerCategoryComparator_uncached() { final Set> set = new HashSet(pairsToLower(ai_texts_unquoteBoth("is a smaller category than"))); ret new Comparator() { public int compare(S a, S b) { a = lower(a); b = lower(b); if (set.contains(pair(a, b))) ret -1; if (set.contains(pair(b, a))) ret 1; ret 0; } }; }