Exemple #1
0
    public static void Main(String[] args)
    {
        var jw = new JaroWinklerDistance();

        // Obtém o texto informado depois de converter para maíusculo e remover os acentos
        var texto1 = jw.RemoveDiacritics(args[0].ToUpper());
        var texto2 = jw.RemoveDiacritics(args[1].ToUpper());


        // Calcula a distância de Jaro-Winkler
        double retorno = jw.Proximity(texto1, texto2);

        Console.WriteLine("Proximidade: " + retorno);
    }