public boolean isReasonablyCertain() {
        return distance < CERTAINTY_LIMIT;
    }
@Test
    public void testMixedLanguages() throws IOException {
        for (String language : languages) {
            for (String other : languages) {
                if (!language.equals(other)) {
                    if (language.equals("lt") || other.equals("lt")) {
                        continue;
                    }
                    ProfilingWriter writer = new ProfilingWriter();
                    writeTo(language, writer);
                    writeTo(other, writer);
                    LanguageIdentifier identifier = null;
                    identifier = new LanguageIdentifier(writer.getProfile());
                    assertFalse(identifier.isReasonablyCertain(),
                            "mix of " + language + " and " + other + " incorrectly detected as " +
                                    identifier);
                }
            }
        }
    }