We need a function to compare the similarity of text strings. The function should return the result and the percentage of similarities found.
In the comparison of text not only are exact matches relevant, but also «fuzzy» matches based on linguistic properties of the text. The parameters indicate the type of compare function which is required.
**string1
** **Input:**Reference string
**string2
** **Input:**String to be compared to the reference string (segments of a text file / records in a database)
**precision
** **Input:**Level of similarity required:
1. Equality only if exact match (string1= 'tête', string2= 'tête')
2. Quasi match if case and accents are right, but special characters are not (string1= 'vice-president', string2= 'vicepresident' or: string1= 'c'est ... dire' , string2= 'c'est...dire' will match)
3. Quasi matches if mixed upper case and lower case (with accents) (string1= 'C?"TÊ', string2= 'Côté' will match)
4. Quasi matches if mixed accented and unaccented (string1= 'COTE', string2= Côté' will match)
5. Fuzzy matches. Examples for fuzzy matches are:
string1= 'MÜLLER', string2= 'Mueller'
string1= 'STRASSE', string2= 'Straße'
string1= 'Brother', string2= 'brothers'
string1= 'Me and my brother', string2= 'You and my brother'
**relation
** **Output:** Result is one of the following:
**1. ****match + percentage
**according to the desired precision
**2.** **no match + 0**
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
VB code! to be integrated in COM and/or in asp page.