Adds specific function to build homonyms hrmid.