Rethink the merging algorithm, since there are a few cases where there are more than 2 possible ways for writing a name.