If you look at real-world examples where unification is used and useful, look at unification-based grammars that are used in computational linguistics, such as HPSG and LFG. At first glance, it looks like another flavor of unification, but they are actually the same.
Unification-based grammar can be thought of as CFG (context-free grammar), where productions are extended with unification. Each CGF member receives an AVM (Attribute Value Matrix), which is a directed acyclic graph of attributes and values. The idea here is somewhat akin to the attribute grammars used in compilers.
Imagine this toy grammar:
S -> NP VP NP -> Kim NP -> The cats VP -> V NP V -> see V -> sees
We have a slight rebirth here in agreement:
* Cats see Kim [S [NP Cats] [VP [V sees] [NP Kim]]]
To fix this, we could refine the CFG to include the notion of agreement:
S -> NP_sg VP_sg S -> NP_sg VP_pl NP_sg -> Kim NP_pl -> The cats VP_sg -> V_sg NP_sg VP_sg -> V_sg NP_pl V_sg -> sees V_pl -> see VP_pl -> V_pl NP_pl VP_pl -> V_pl NP_sg
Here we abandon the excessive generation from the previous one. But this leads to a combinatorial reaction very quickly. However, we could enlarge each term with AVM and combine them together in the analysis:
S -> NP VP , C = A unified with B. NP -> kim /[ AGR sg ]. We mark Kim as being singular NP -> The cats / [ AGR pl ] VP[ AGR
The # 1 notation is retries, which means that the value of this function must be the same, in fact they will point to the same node on the graph after the merge, if it is executed. Here, in practice, we say that the agreement function of a verb phrase coincides with the agreement of the verb in the phrase.
V -> See / [ AGR pl ] V -> Sees / [ AGR sg ]
With our expanded toy grammar, “Kim sees cats” is rejected because NP and VP do not combine, having a different meaning for their AGR function. When we understand, we combine AVM together and therefore express very expressively, allowing grammars to write grammars. As a rule, UBGs with a wide coverage have about 100 rules, while an equivalent CFG, which may not exist, once completed Turing CFGs will have thousands or more rules.
See HPSG and LFG for details .