Module:Sandbox/AbstractWikipedia/TextAssembler/doc
This is the documentation page for Module:Sandbox/AbstractWikipedia/TextAssembler
This module is part of the Abstract Wikipedia template-renderer prototype. It corresponds to the last block in the proposed NLG architecture.
It exposes the function constructText
, which responsible for assembling a string of text from a list of lexemes passed to it.
While assembling the text, it takes care of spacing, punctuation and capitalization, according to the information given in the trailing_punctuation
and capitalization
tables.
Note that previously this code was part of the main module, and as such it is not mentioned in the recorded demo of the prototype.