Function addBestMatch
Parameters
- name: string
Name to search
- alternatives: string[]
Alternatives to choose from
- matchCase: { matchCase?: boolean } = {}
Do a case sensitive compare (defaults to FALSE)
Returns string
Returns ", did you mean 'XXX'?" text if a better match was found, otherwise an empty string
- name: string
Return match info as text to append to the end of a message