Approximate String matching exclude first character

153 views Asked by At

I'm trying to do approximate String matching between lists of terms terms1 and terms2 where I want to match Strings including typos, different notations, etc. I'm using

amatch(terms1, terms2, method="osa", maxDist=1, nomatch=0)

I want to match e.g. licence and license, but I don't want to match training and raining. So I thought about excluding the 1st character from the approx. matching, so that it is not considered for deletion/substitution, but has to be the same in both Strings. How could this be done or are there any better ways to match correctly?

Any help appreciated!

0

There are 0 answers