FuzzyStrings | Fuzzy String Algorithms for .NET | Search Engine library
kandi X-RAY | FuzzyStrings Summary
kandi X-RAY | FuzzyStrings Summary
Fuzzy String Algorithms for .NET
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of FuzzyStrings
FuzzyStrings Key Features
FuzzyStrings Examples and Code Snippets
Community Discussions
Trending Discussions on FuzzyStrings
QUESTION
I'm trying to compare a full string with it's abbreviated version and return a score accordingly to its similarity.
Here's an example:
Quarta Vara Civel Santana de Parnaiba
And the possible abbreviations
Qta VC Sta Parnaiba
Q V C Sta Pba
4 VC Sta Parnaiba
I tried using FuzzyStrings dll to do so, but when it comes to severe abbreviation like the second and third examples it doesn't work well.
Any ideas on how to deal with this problem?
...ANSWER
Answered 2019-Jan-10 at 21:10Using the Jaro-Winkler distance class from this answer, which gives priority to matching prefixes, and comparing each abbreviation component to the phrase words (choosing the maximum match to compensate for skipping words), we can write these extensions:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install FuzzyStrings
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page