Thread:User talk:CodeCat/Remove duplicates when there are multiple heads

The entry for أنتليجنسيا has one Arabic vocalization with two possible transliterations, representing two different pronunciations. This is expressed using 1= and head2=, but for this to work properly, the code in Module:headword should check for and remove duplicate heads. (I already do this in various places in Module:ar-verb; you could reuse e.g. the contains and insert_if_not functions from there.) Thanks.