Loosely matching rhymes for single pattern recognition