Is there an algorithm that given two strings yields the degree of equality between them, applying metrics that can be provided externally? For example, the two strings "Plant code" and "PlantCode" could be 0.8 equal, "Plant code" and "Plant" could be 0.6 equal, "Truck no" and "shipment details" could be 0.6 equal (using extrenally provided synonyms dictionary). The numbers are made up, but I hope they get the point across. Does there exist such an algorithm? I’d prefer if it comes as a library, rather than having to implement it on my own. Any help would be greatly appreciated. Thanks.
Is there an algorithm that given two strings yields the degree of equality between
Share
Try the Simmetrics library. It provides a whole number of simmilarity metrics.