Loosely matching rhymes for begin-of-paper detector