10. A computer program product, the computer program product comprising: a non-transitory computer-readable storage medium having computer-readable program code embodied therewith, the computer-readable program code executable by a processor to perform an operation comprising: responsive to receiving a text input comprising a first word: validating the first word against a content corpus, wherein the content corpus comprises a plurality of words approved for display in an online chat room, wherein a restricted word that is not in the content corpus is restricted from display in the online chat room; validating the first word against a set of rules; and upon determining that the first word of the text input is not validated against at least one of the content corpus and the set of rules: modifying the text input by replacing the first word with a first approved word from the content corpus; receiving input specifying to submit the modified text input; and outputting the modified text input for display in the online chat room.
10. A computer program product, the computer program product comprising: a non-transitory computer-readable storage medium having computer-readable program code embodied therewith, the computer-readable program code executable by a processor to perform an operation comprising: responsive to receiving a text input comprising a first word: validating the first word against a content corpus, wherein the content corpus comprises a plurality of words approved for display in an online chat room, wherein a restricted word that is not in the content corpus is restricted from display in the online chat room; validating the first word against a set of rules; and upon determining that the first word of the text input is not validated against at least one of the content corpus and the set of rules: modifying the text input by replacing the first word with a first approved word from the content corpus; receiving input specifying to submit the modified text input; and outputting the modified text input for display in the online chat room. 11. The computer program product of claim 10 , the operation further comprising: providing a visual effect on the first approved word indicating the replacement; and upon determining that the first word is validated against the content corpus and the set of rules: proposing at least a second word from the content corpus, based on the first word, as a next word of the text input.