Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

compare elements of a data table to itself rows to calculate similarity index of a string

Suppose i have a datatable in C# code

S/N Name Country

  1. nabil pakistan
  2. nabeel pakistan
  3. naaaabil pakistan
  4. naaabeeel Canada

i want to compare these element to one another by applying in a loop LevenshteinDistance(Soundex(datatable[i][1]), Soundex(array[j][1]))

LevenshteinDistance %=& Soundex are Methods that return.

result will be like this

  1. nabil pakistan 80%
  2. nabeel pakistan 70%
  3. naaaabil pakistan 75%
  4. naaabeeel pakistan 30%

then i will group by on basis of % of match.

plz help me out writing the code for generating the results.

Comments