string newName1 = "Daffa Akbar";
string newName2 = "Daffa Akbar Dwi Putra Damarriyianto";
string newName3 = "Daffa Akbar";
name = UpdateName(name, newName1);
name = UpdateName(name, newName2);
name = UpdateName(name, newName3);
static string UpdateName(string currentName, string newName)
string currentLower = currentName.ToLower();
string newLower = newName.ToLower();
int ratio = Fuzz.Ratio(currentLower, newLower);
int partialRatio = Fuzz.PartialRatio(currentLower, newLower);
Console.WriteLine($"Ratio: {ratio}, PartialRatio: {partialRatio}");
if (ratio >= 80 || partialRatio >= 80 || newLower.StartsWith(currentLower))