no_interpret

no_interpret #

The no_interpret method allows to deactivate the nlg interpretation (automatic contractions, typographical convention) of the write_text method.

nlg = NlgTools()

text = "This is a string.with a dot inside     ."

nlg.write_text(text)
print(nlg.text)
# "This is a string. With a dot inside."

text = "This is a string.with a dot inside     ."

text = nlg.no_interpret(text)

nlg.write_text(text)
print(nlg.text)
# This is a string.with a dot inside     .