Use "twigged" in a sentence

1. Then he twigged, and, hastily knocking Bill down, he Boarded the train with Amelia

2. As AI has now kicked in and twigged that I am doing something ‘Authorish’ the Face Book Algorithms have recalibrated, and I’m being bombarded by a plethora of ‘author related’ items