How to Prevent Duplicate Segments in Translation Memory

Prevent duplicate segments by stopping the second write, not by deleting rows after the fact. Turn memoQ Allow multiple translations off when you create the TM, turn role storage off before the first confirm, and set Trados confirm and import to merge, overwrite, or leave-unchanged instead of Add new translation units. Phrase skips a second import only when source, target, and context all match; XTM Cloud overwrites the stored unit only when Modify the existing TM record is on for the same context and tags, or the same segment ID and tags. Crowdin does not replace the stored unit when you re-upload an edited TMX: a changed source and translation become a new unit, and a translation-only edit is stored as an alternative version beside the original.

This is a different ticket from conflicting entries (same source, different targets). Conflicts need a master translation. Exact duplicates need a setting that stops the second write. Using the conflict workflow on identical pairs wastes the afternoon and does not stop the next import from writing them again.

It is also not duplicate translation work across product releases. That ticket is paying translators again for strings already approved on the last version because the TMS treated the new branch as new unique strings. Cleaning exact pairs in one TM does not stop that bill. And it is not an automated workflow that should have translated a repetition once: calculate repetitions, lock in-context exact matches, and auto-update identical strings are how automated workflows prevent duplicate translations.

This page is a prevention checklist for LSP TM admins and PMs. It is not a vendor feature list.

What “duplicate segment” means here

Teams use “duplicate” for four different objects:

  • Exact pair. Same source text, same target text. Pure bloat. Safe to merge or delete once you keep one unit’s metadata.
  • Role copy. Same pair, different workflow role (translator / reviewer 1 / reviewer 2). memoQ treats role like context: a second confirm creates a new unit instead of overwriting.
  • Context copy. Same pair, different previous/next segment or ID. These are often intentional 101%/102% matches. Do not mass-delete them unless you decided this TM should not store context.
  • Conflict. Same source, different target. Not a duplicate. Resolve it on the conflicts guide.

Prevention starts by picking which of the first three you refuse to store. The tool cannot guess.

How the second copy gets written

memoQ’s own duplicate-filter help lists the usual generators: confirming the same translation in different contexts, a TM that allows several translations for one source, a TM with no context, TMX imports full of identical sources, and confirming non-text (numbers, dashes). Add two operational ones: a second import of the same file, and two writable TMs on one project.

1. The TM was created to allow multiple translations

In memoQ, Allow multiple translations is a create-time checkbox. Vendor docs say to leave it cleared unless you are importing a foreign TM that already has several targets per source. If context storage is on, multiple translations are usually unnecessary: different targets almost always have different context.

You cannot flip the checkbox later. The workaround is export to TMX, create a new TM with the box off (and with context storage if this is a working TM), then import once. Confirming into the old TM while you “think about recreating it” keeps writing extras.

Trados does not use that checkbox. It uses the update mode on confirm and on import (below). The same failure mode is Add new translation units left as the default.

2. Role storage was on before anyone confirmed

memoQ support is explicit: with default settings (store context, multiple translations off) you still get one unit per context and per role. Translator confirms. Reviewer 2 confirms the same segment in the same context. A second unit appears instead of an overwrite.

Turning role storage off later does not collapse the copies you already have. Confirming again after the change can add a fourth unit with role None. If you do not need per-role history, turn role storage off before the first confirm. Then filter the existing role copies with “Sources equal, roles different” and keep the reviewer unit.

3. Confirm and import are set to “add new”

Trados Studio’s TM update and import dialogs offer four treatments when the incoming source already exists:

  • Add new translation units — writes another row. This is how a refresh import doubles a clean TM.
  • Overwrite existing translation units — replaces the stored pair (and most fields) with the incoming one.
  • Leave existing translation units unchanged — skips the incoming row. Use this when the live TM is the source of truth.
  • Keep most recent translation units — overwrites only if the incoming change date is newer.

RWS documents Merge translation units as the default and recommended option for updating TMs on confirm: replace the unit only when context matches; leave other same-source units alone. That prevents a new exact pair without deleting a context variant you still want.

Pick one policy and write it on the TM, not in Slack. “Add new” is the setting that creates the ticket you are reading.

4. The same TMX was imported again

memoQ’s TMX import dialog warns that the TM may have duplicates after import when multiple translations are allowed or the TM uses double context. A second import of the same export does not “refresh” lookup. It writes another copy of every pair the policy does not overwrite.

If matches disappeared after a tool move, that is a migration / index problem, not a reason to import again. Reindex first.

5. Two writable TMs, or an alignment dumped in as new units

A project TM and a main TM both marked for update will store the same confirm twice. Alignment results imported with “Add new” do the same for every segment the aligner already had in the TM. One writable TM per project. Treat alignment output as an import with leave-unchanged or keep-most-recent, then spot-check—do not pour it on top of a production TM.

6. Phrase added the segment because context did not match

Phrase does not use Trados’ “Add new translation units” switch. Its import rules for a TM that already has segments are:

  • Same source, same target, and same context — skipped. Not a second row.
  • Same source and same context, different target — the new segment overwrites the old one. Phrase applies that overwrite when no context is available, too.
  • No context, identical source, different target — deduplicated on import.
  • Every other segment — added. Same source and same target with a different context is this case.

That last case is the duplicate Phrase still writes. A unit stores one context type at a time: previous and next segment, or a segment key, not both. Changing the context setting does not rewrite units already saved. Re-importing or reprocessing the file to apply the new type creates new entries. The originals stay until you delete them.

A second generator is the XLSX round-trip. Export without context, mark IDs with |update, and import back: Phrase imports those segments as new. Duplicates created with the update function are not removed automatically. The import shows an error, and you delete them by hand.

Do not export without context and pour the file back into the live TM to “clean” it. Phrase’s own pass for multiple 100% matches (same source, different context, when you have decided you do not want context) is: export XLSX with previous segment, next segment, and context key deselected, import that file into a new TM, then delete the old TM if you no longer need it. Duplicates inside one XLSX are removed on import. That does not collapse units already stored under different context.

7. XTM Cloud saved the same source and target again

XTM’s matching article says it is not possible to avoid saving segments with the same source and target. The latest translation overwrites the one you have when both of these are enabled under Configuration → Settings → Translation → TM → Matches - general:

  • Modify the existing TM record if the project segment has the same — select Context and Tags.
  • Modify the existing TM record if the project segment with Segment ID has the same — select Segment ID and Tags.

If those two settings are turned off completely, two projects under the same XTM Cloud customer still do not duplicate a unit that has the same source, the same translation, and the same context (previous source and next source). The first record is updated. That also applies when you change the translation of the original segment. When every duplicates-handling option is disabled, XTM checks source and context.

Alternative translations are the case that flips. With those checkboxes on, an alternative that has the same source, inlines, context, and tags overwrites the main translation when it is confirmed. Turning the settings off stores the alternative as its own record. XTM notes that this can create similar entries. Pick the overwrite if you want one unit. Pick the separate record only if you have a reason to keep the alternative, and then clean the similar entries rather than leaving both as lookup noise.

8. Crowdin re-upload left the original unit in place

Crowdin’s translation memory docs describe what a downloaded TMX does when you edit it locally and upload it again. The re-upload does not replace the stored unit.

  • Source and translation both changed. Crowdin treats the uploaded unit as new. The original unit is left unchanged.
  • Only the translation changed. Crowdin adds that translation as an alternative version on the existing unit and keeps the original translation.

The same page says the way to keep only the modified units is to download the complete TM, edit it locally, completely clear the TM in Crowdin, and then upload the modified file. Find and replace, from the TM’s records, changes the segments you select. A second upload does not. Do not re-upload a “cleaned” TMX onto the live memory and expect the old rows to disappear.

Prevention: set these before the next project

  1. Decide context policy. Working / master TM: store context, refuse multiple translations. Reference-only TM: no context is acceptable; do not confirm live work into it (memoQ will try to save context and you will lose it).
  2. Create the TM with multiple translations off. If the box is already on, recreate via TMX. Do not keep confirming into the old file.
  3. Turn role storage off before the first confirm unless you have a written reason to keep translator vs reviewer units.
  4. Set confirm update to merge-on-matching-context or overwrite — never add-new as the house default.
  5. Set import to leave-unchanged or keep-most-recent when the destination TM is already in use. Use add-new only for a brand-new empty TM.
  6. Import a given TMX once. If lookup is empty after the import, check language codes and reindex before you import again.
  7. One writable TM per project. Attach other TMs for lookup only.
  8. In Phrase, do not re-import to change context type on a live TM. That writes new units. Delete the originals, or import the no-context export into a new TM and retire the old one.
  9. In XTM Cloud, enable modify-existing-record for context and tags, and for segment ID and tags, if a later confirm should overwrite rather than sit beside the old unit.
  10. In Crowdin, do not re-upload an edited TMX onto a live TM if the old unit should be gone. Clear the TM first, or use Find and replace on the records. A re-upload adds a new unit or an alternative translation.

What to do with units that are already doubled

Prevention does not delete the copies you have. Clean them once, then lock the settings.

In memoQ, open the TM editor → Operations → Filter for duplicates. For this ticket use Sources and targets both equal. Tighten tag strictness if formatting-only copies should count as the same pair. Merge metadata into one master (concatenate notes) and delete the rest. Use Sources equal, roles different for role copies; keep the highest workflow role.

Trados Studio’s duplicate search is a different definition. RWS documents it in the Translation Memories view: Search in potential duplicates only. A duplicate there is the same source text. Tags are not considered, and the same target or the same context is not required. The result groups conflicts and context variants with exact pairs. Delete an exact pair. Do not delete a different target, or a context variant you still want, just because that search put them on one page. A Multiple translations penalty lowers the score of a match. It does not stop the next confirm from writing another unit.

If the filter returns groups whose targets differ, stop. That is a conflict, not a duplicate.

Do not export-and-reimport as a cleanup. A second import without the settings above is how the pile grew. On Crowdin that second upload is specifically not a replace: the original unit stays, either beside a new unit or beside an alternative translation.

What this usually is not

  • “The TM is corrupt.” Duplicate pairs are a write-policy problem. The file is doing what the checkbox asked.
  • “We should allow multiple translations so we don’t lose work.” Different targets belong in a conflict review or in context variants—not in an unbounded list on every lookup.
  • “Drop the match threshold so translators see both copies.” They already see both. That is the complaint.
  • “Re-import the client TM every Monday.” That is a duplicate factory unless overwrite/leave-unchanged is on.
  • “Does translation create duplicate content?” A translated page is not an exact-pair row. Google’s localized-versions note says language versions are duplicates only when the main content stays untranslated. That is a search-index question, not a second write in the TM.

Fixes that help — and fixes that do not

Help:

  • Recreate a memoQ TM with multiple translations cleared, then import once
  • Turn role storage off before anyone confirms
  • Trados merge / overwrite / leave-unchanged / keep-most-recent, chosen on purpose
  • One writable TM; others lookup-only
  • One exact-pair cleanup pass after the settings change

Do not help, or help only once:

  • Importing the same TMX again “to refresh”
  • Re-uploading an edited Crowdin TMX and expecting the old unit to be gone
  • Turning role storage off after T/R1/R2 copies exist, then confirming again
  • Mass-deleting context variants because the source text matches
  • Treating different targets as duplicates and keeping both “just in case”

The limit a duplicate filter cannot repair

A TM answers one question: have I stored this source string before? Deduplicating the rows does not tell the matcher which wording was right for this audience, or why a reviewer changed a confirm. You can have a perfectly unique TM that still preserves the wrong translation with full confidence.

That is why we built Aquilla around living memory instead of string lookup. Suggestions come from the project’s own work and the team’s documented translation philosophy—not from how many identical rows survived an import policy. You can still run a conventional TM. This page exists because that workflow is real, and duplicate segments have mechanical causes.

Summary: duplicate-prevention checklist

  • ☐ Separate exact pairs from conflicts (different targets) and from context variants
  • ☐ Create / recreate the TM with multiple translations off
  • ☐ Turn role storage off before the first confirm if you do not need per-role units
  • ☐ Set confirm update to merge-on-context or overwrite — not add-new
  • ☐ Set import to leave-unchanged or keep-most-recent on a live TM
  • ☐ Import each TMX once; reindex instead of re-importing
  • ☐ One writable TM per project
  • ☐ Filter sources+targets equal; merge metadata; delete extras
  • ☐ Send different-target groups to the conflict workflow
  • ☐ If stored translations look wrong, not merely doubled, audit the TM
  • ☐ Phrase: do not |update an XLSX that was exported without context; do not re-import to switch context type on the live TM
  • ☐ XTM Cloud: Modify the existing TM record for context and tags, and for segment ID and tags, if the next confirm should overwrite
  • ☐ Crowdin: clear the TM before upload if you want only the edited file. A re-upload does not replace the stored unit
  • ☐ Studio duplicate search is source-only. Do not delete a different target from that result page

FAQ

How do we prevent duplicate segments in our translation memory?

Stop the second write. Create the memoQ TM with Allow multiple translations off, and turn role storage off before the first confirm. In Trados, confirm and import with merge, overwrite, leave-unchanged, or keep-most-recent — not Add new translation units. In Phrase, an import is skipped only when source, target, and context all match. In XTM Cloud, the latest translation overwrites the stored unit only when Modify the existing TM record is on for the same context and tags, or the same segment ID and tags. In Crowdin, re-uploading an edited TMX does not replace the stored unit. Import each file once, then delete exact pairs. Studio’s duplicate search matches source text only, so do not delete a different target from that result.

Does Crowdin replace a translation unit when you re-upload a TMX?

No. Crowdin says a re-upload leaves the original in place. Edit both the source and the translation, and the upload is a new unit. Edit only the translation, and that wording is an alternative version on the existing unit. To keep only the modified file, download the complete TM, edit it, completely clear the TM, then upload. Find and replace on the records is the in-place edit. A second upload is not.

Does XTM Cloud prevent duplicate segments in the translation memory?

Not by refusing the save. XTM says the same source and target can still be stored. The most recent translation overwrites the stored unit when Modify the existing TM record is enabled for context and tags, and for segment ID and tags, under Configuration → Settings → Translation → TM → Matches - general. If both settings are off, the same source, translation, and previous/next context under one XTM Cloud customer updates the first record instead of adding another. An alternative translation overwrites the main one while those settings are on, and becomes its own record when they are off.

Does Phrase skip duplicate segments when you import a TMX?

Only when the incoming segment has the same source, the same target, and the same context. Same source and same context with a different target overwrites. No context, same source, different target is deduplicated. Every other segment is added, including the same pair under a different context. Re-importing to change context type creates new entries and leaves the old ones.

Is a 101% context match the same as a duplicate segment?

No. A context copy is the same wording with a different previous or next segment, or a different segment key. That is often the 101% match you want. An exact-pair duplicate is the same source and the same target stored twice without a reason to keep both. Do not mass-delete context variants to shrink the TU count. Different targets are a conflict, not a duplicate.

Related Resources