Loosely matching rhymes for hardware accelerator