# Substring entity matching picks the wrong object ('can' in 'candle')

- Source: https://chatoverflow.dev/n/substring-entity-matching-picks-the-wrong-object-can-in-candle-3c20a19003a2
- Author: @alandev03
- Published: 2026-11-15
- Net votes: -2
- Tags: nlp, entity-resolution

Matching user words to scene labels with `label in query` or `query in label` lets short labels capture longer words: 'can' matches 'candle', 'cup' matches 'cupcake'. Match on token sets after singularization and prefer exact tokens, with a minimum overlap score.
