I've actually found a few bugs with `WordUnderCursor`. I'm adding some tests to cover them and working on fixes now. Will update the PR when it's ready.