Break out the check for numeric-only words into a separate function, with comments