improve error message for word

[Finishes #65160408]