Contextual adaptation of documents automatically replaces words for synonyms that appear within context or topic whey they are being used. A machine learned topic modeling, trained by a set of documents representative of a target user is executed to determine topics of an input document, and to determine words in the document to replace based on determining the relevance of the words to the topics in the documents. An output document is generated based on the input document with the replaced words.
Please help me write a proper abstract based on the patent claims. CLAIM: 1. A system for contextual text adaptation, comprising: one or more hardware processors; a topic model algorithm executable on one or more of the hardware processors, the topic model algorithm generated by machine learning based on a corpus of documents at least related to context of a target user, the topic model comprising a first function that predicts probability distribution of a plurality of topics in a given document, and a second function that predicts probability of a given word occurring in a document associated with a given topic, one or more of the hardware processors operable to receive an input document, one or more of the hardware processors further operable to determine input document topics associated with the input document and a normalized weight associated with each of the input document topics by executing the first function, one or more of the hardware processors further operable to determine an aggregate probability indicating relevance of an input document word to the input document topics based on executing the second function, one or more of the hardware processors further operable to determine a synonym of the input document word based on a dictionary of synonyms, one or more of the hardware processors further operable to determine an aggregate probability for the synonym based on executing the second function, one or more of the hardware processors further operable to compare the aggregate probability for the synonym and the aggregate probability for the input document word, and responsive to determining that the aggregate probability for the synonym is greater than the aggregate probability for the input document word, one or more of the hardware processors further operable to replace the input document word with the synonym, one or more of the hardware processors further operable to generate an output document comprising content of the input document with replaced word. 2. The system of claim 1, wherein one or more of the hardware processors communicate with a social media server to retrieve the corpus of documents. 3. The system of claim 1, wherein the corpus of documents comprises web postings the target user accesses on the social media server. 4. The system of claim 1, wherein the social media server presents the output document on a web page associated with the social media server. 5. The system of claim 1, wherein one or more of the processors determines the aggregate probability indicating relevance of an input document word to the input document topics, determines the aggregate probability for the synonym, compares the aggregate probability for the synonym and the aggregate probability for the input document word, and replaces the input document word with the synonym responsive to determining that the aggregate probability for the synonym is greater than the aggregate probability for the input document word, for each of a plurality of input document words in the input document. 6. The system of claim 1, wherein the aggregate probability for the input document word is determined as a sum of products of the probability that the input document word is associated with an input document topic and the normalized weight of the input document topic. 7. The system of claim 1, wherein multiple synonyms are determined for the input document word and the aggregate probability is determined for each of the multiple synonyms, wherein the synonym with maximum aggregate probability among the multiple synonyms is selected for the comparing with the aggregate probability for the input document word. 8. A computer-implemented method of contextual text adaptation, the method performed by one or more hardware processors, comprising: receiving a corpus of documents in context of a target user; receiving a dictionary of synonyms; generating a topic model algorithm based on at least the corpus of documents by machine learning, the topic model algorithm comprising a first function that predicts probability distribution of a plurality of topics in a given document, and a second function that predicts probability of a given word occurring in a document associated with a given topic; receiving an input document; determining input document topics associated with the input document and a normalized weight associated with each of the input document topics by executing the first function; determining an aggregate probability indicating relevance of an input document word to the input document topics based on executing the second function; determining a synonym of the input document word based on the dictionary of synonyms; determining an aggregate probability for the synonym based on executing the second function; comparing the aggregate probability for the synonym and the aggregate probability for the input document word; and responsive to determining that the aggregate probability for the synonym is greater than the aggregate probability for the input document word, replacing the input document word with the synonym; and generating an output document comprising content of the input document with replaced word. 9. The method of claim 8, wherein the determining of an aggregate probability indicating relevance of an input document word to the input document, the determining of an aggregate probability for the synonym, the comparing of the aggregate probability for the synonym and the aggregate probability for the input document word, and the replacing of the input document word with the synonym responsive to determining that the aggregate probability for the synonym is greater than the aggregate probability for the input document word, is performed for each of a plurality of input document words in the input document. 10. The method of claim 8, wherein the aggregate probability for the input document word is determined as a sum of products of the probability that the input document word is associated with an input document topic and the normalized weight of the input document topic. 11. The method of claim 8, wherein multiple synonyms are determined for the input document word and the aggregate probability is determined for each of the multiple synonyms, wherein the synonym with maximum aggregate probability among the multiple synonyms is selected for the comparing with the aggregate probability for the input document word. 12. The method of claim 8, wherein the corpus of documents are received over a communication network from a social media server. 13. The method of claim 8, wherein the corpus of documents comprises web postings the target user accesses. 14. A computer readable storage medium storing a program of instructions executable by a machine to perform a method of contextual text adaptation, the method comprising: identifying a target user; receiving a corpus of documents in context of the target user; receiving a dictionary of synonyms; generating a topic model algorithm based on at least the corpus of documents by machine learning, the topic model algorithm comprising a first function that predicts probability distribution of a plurality of topics in a given document, and a second function that predicts probability of a given word occurring in a document associated with a given topic; and receiving an input document; determining input document topics associated with the input document and a normalized weight associated with each of the input document topics by executing the first function; determining a probability that an input document word is associated with an input document topic for each of the input document topics by executing the second function; determining an aggregate probability for the input document word as a sum of products of the probability that an input document word is associated with an input document topic and the normalized weight of the input document topic; determining a synonym of the input document word based on the dictionary of synonyms; determining an aggregate probability for the synonym; comparing the aggregate probability for the synonym and the aggregate probability for the input document word; responsive to determining that the aggregate probability for the synonym is greater than the aggregate probability for the input document word, replacing the input document word with the synonym; and generating an output document comprising content of the input document with replaced word. 15. The computer readable storage medium of claim 14, wherein the aggregate probability for the input document word is determined as a sum of products of the probability that the input document word is associated with an input document topic and the normalized weight of the input document topic. 16. The computer readable storage medium of claim 14, wherein multiple synonyms are determined for the input document word and the aggregate probability is determined for each of the multiple synonyms, wherein the synonym with maximum aggregate probability among the multiple synonyms is selected for the comparing with the aggregate probability for the input document word. 17. The computer readable storage medium of claim 14, wherein the corpus of documents are received over a communication network from a social media server. 18. The computer readable storage medium of claim 14, wherein the corpus of documents comprises web postings the target user accesses.