SWIM plugin: inserting patterns