1. A computer-implemented method for generating phrases, the method comprising: receiving a dictionary storing a plurality of words of a first language and annotated with grammatical information and semantic information, wherein the annotated words are organized into groups based on meanings of the annotated words, wherein the annotated words in the dictionary are approved for use in a chat environment, and wherein the semantic information specifies a category for each word in the plurality of words based on a semantic meaning of that word; generating, by operation of one or more computer processors, a plurality of chat phrases of the first language using combinations of the annotated words based on the grammatical information, semantic information, phrase formation rules, and the groups, wherein each phrase formation rule specifies how to generate one or more of the chat phrases by combining words from the dictionary based on the grammatical information and the semantic information; storing the generated chat phrases in a memory; creating a semantic tag for a first chat phrase of the plurality of chat phrases, wherein the semantic tag includes a plurality of words extracted from the first chat phrase; translating the plurality of words within the semantic tag into a translated semantic tag of a second language; translating the first chat phrase into a second chat phrase represented in the second language, by determining the second chat phrase matching the translated semantic tag; and transmitting the second chat phrase to a client device of an online environment.