Terme merge module, as its title well implies it, allows administrators to merge terms one into another. When using taxonomy for free tagging purposes, it's easy to end up with several terms having the same meaning. This may be due to spelling errors, or different users simply making up synonymous terms as they go. You, as an administrator, may then want to correct such errors or unify synonymous terms, thereby pruning the taxonomy to a more manageable set. This module allows you to merge multiple terms into one, while updating all fields referring to those terms to refer to the replacement term instead. Currently the module features the following set of functionality and useful tools:
Updating all references to branch terms and changing them to the trunk term.
  The core feature of the module is to safely update all existing content and to make it point from a branch term to the trunk one. Right now the following Field types are supported:
  - Taxonomy term reference
  - Entity reference (when the underlying entity type is Taxonomy term)
  - and any other field type that correctly defines its foreign keys in the database
Merging field values from the branch term into the same fields of the trunk term.
  Optionally you may merge field values from each term branch into the term trunk. You choose what fields should get merged and after combining the values from both terms only unique values are kept in the trunk term. It is a useful option if you do not want to lose field values of your term branches.
Redirect module integration
  Module integrates with the current release of Redirect module, allowing you to set up SEO friendly HTTP redirects from branch terms to the trunk term.
Synonyms module integration
  Synonyms module is also integrated: before merging you may choose into which field of trunk term the branch terms will be added as synonyms - this should prevent from growing your vocabularies in future, since now your terms will have the terms they have merged as synonyms.
Duplicate merge
  Sometimes even the task of identifying duplicates can become tedious, especially on the big vocabularies. So Term Merge tries to facilitate this part of the process too. There are certain heuristics implemented based on which the module tries to identify the terms that are likely to be duplicates of each other. Your task is then only to review the suggested duplicates and fire off merging of those that actually are duplicates. If your vocabulary is too big or if you only want it so, you can invoke the duplicate search tool only on a subset of the vocabulary terms, on the children of some term.

## Duplicate merge

This is a somewhat versatile tool, so we decided to dedicate it a separate paragraph for we want to make sure users take the full advantage of its capabilities. When you face the task of finding duplicate terms, you are likely to deal with two complications:

- by what criteria should I judge if 2 terms are duplicates?
- how easy and how much of additional information can I retrieve about possible duplicate terms in order to be able to decide whether they are actual duplicates or it was just a false positive?

### Criterion of duplicate

Out of the box Term Merge gives you 3 heuristics for this purpose. The terms are considered duplicates if:

- Their name is the same, disregarding the letter case
- Their description is the same, disregarding the letter case
- They have the same parent

And then through the UI of the duplicate tool you can enable a combination of the available heuristics based on which terms will be marked as duplicates. Additionally, you can introduce your own heuristic if you have a custom notion of what terms are possible duplicates. So you can plug in your duplicate heuristic into the Term Merge and leverage its whole power only providing your custom duplicate detection. If you are interested in writing custom duplicate detection heuristic, cheer up! It is not that difficult and you can read on about it on this page.

### How to judge if suggestion duplicates are actually duplicates?

One way or another, but you will have your duplicates laid out in front of you. You certainly can merge all of them without extra worrying about it. But chances are, at least some of the suggested terms may actually not be duplicates. So you might want to quickly scan through the available suggestions and review them for any obvious false positives. You can use term name, term ID, description, parents and fields of those terms to tell the heads and tails in it.