Loosely matching rhymes for line detector