StringDistanceBuilderExample { public static float example06() { Function<String, String> reverse = new Function<String, String>() { @Override public String apply(String input) { return new StringBuilder(input).reverse().toString(); } }; String a = "A quirky thing it is. This is a sentence."; String b = "This sentence is similar; a quirky thing it is."; StringDistance metric = with(new EuclideanDistance<String>()) .simplify(Simplifiers.toLowerCase()) .simplify(Simplifiers.removeNonWord()) .tokenize(Tokenizers.whitespace()) .transform(reverse) .tokenize(Tokenizers.qGram(3)) .build(); return metric.distance(a, b); }  static float example00(); static float example01(); static float example02(); static float example03(); static float example04(); static float example05(); static float example06(); static float example07();  }
@Test public void example06(){ assertEquals(4.6904f, StringDistanceBuilderExample.example06(), DELTA); }