define method

NotationVocabulary define(
  1. Map<String, String> texts
)

This table with the words defined in texts (each a file's text by its name: StickyNote.txt) over its own; what could not be read is left out (readDefinitions says what).

Implementation

NotationVocabulary define(Map<String, String> texts) => merge(NotationVocabulary(definitions: readDefinitions(texts).words));