has method
Whether word is a defined word here (a definition, or a define read
in the text so far). A word of the notation's own is not, except a
design system's component that the page's own definition names with no
meaning of its own (define Counter …): on that page the definition
replaces the component (docs/design/20 section 6). The core's words,
the catalog's and the page words are never replaced.
Implementation
bool has(String word) {
if (!(ours?.call(word) ?? false)) return page.containsKey(word) || definitions.containsKey(word);
if (component?.call(word) == null) return false;
return (_of(word) ?? const <NotationDefinition>[]).any((d) => d.file == 'page' && d.name == null);
}