add the script to calc edit distance
add the script to calc edit distance