1
What is the best way to compare the level, or percentage of likeness between two strings using Javascript or Typescript?
Example:
string1 = "Este grupo é muito util para crescer profissionalmente e aprender coisas novas."
string2 = "Este grupo é muito útil para aprender coisas novas e úteis e crescer profissionalmente."
The function would return the percentage of similarity between string1
and string2
, as for example: 58%
and how does it arrive at 58%? what have you tried to do?
– Ricardo Pontual
you may need to use machine learning for this.
– JeanExtreme002
You came to see this question?
– hkotsubo
Search for Levenshtein or Soundex algorithm.
– Augusto Vasques