If the user tries to add a entry that already exists, they should be informed about this and be given a choice to either update one of the existing entries or add a new one. To give them something to go on, the entries as JSON should be displayed. A more user friendly solution is handled in T277152.
This probably means that we need to add some extra fields to Special:EditLexicon that only show up when certain URL parameters are given.