Once we have a set of word tokens identified in the wikitext, we want to know if any of them are uppercase words. This will allow us to build the credibility signals related to uppercase words.
A couple of lines of code to copy.
An uppercase word is a word token that has length >1 and all characters in the token are uppercase.
Here is code to copy/paste.
This utility will live under structured-data/packages.