1. A computer-readable storage medium comprising computer-executable instructions that, when executed by a processor, cause a computing device to perform acts for embedding advertising into a web page, the acts comprising: identifying a webpage, provided by a publisher that subscribes to an embedded advertising service; extracting a sentence from the webpage; generating a parse tree for the sentence, wherein each word in the sentence is a node in the parse tree; associating an advertisement stored in an advertisement database with the sentence, wherein the advertisement comprises an advertising text; creating a plurality of compositions of the advertisement and the sentence by inserting the advertising text into the parse tree adjacent to nodes in the parse tree; calculating a probability for each of plurality of compositions based on a language model; selecting a grammatical composition from the plurality of compositions based at least in part on the probability; and rendering the webpage with the grammatical composition.
1. A computer-readable storage medium comprising computer-executable instructions that, when executed by a processor, cause a computing device to perform acts for embedding advertising into a web page, the acts comprising: identifying a webpage, provided by a publisher that subscribes to an embedded advertising service; extracting a sentence from the webpage; generating a parse tree for the sentence, wherein each word in the sentence is a node in the parse tree; associating an advertisement stored in an advertisement database with the sentence, wherein the advertisement comprises an advertising text; creating a plurality of compositions of the advertisement and the sentence by inserting the advertising text into the parse tree adjacent to nodes in the parse tree; calculating a probability for each of plurality of compositions based on a language model; selecting a grammatical composition from the plurality of compositions based at least in part on the probability; and rendering the webpage with the grammatical composition. 10. The computer-readable storage medium of claim 1 , wherein the selecting a grammatical composition comprises: comparing the probability of a plurality of the grammatical compositions; and selecting a one of the plurality of grammatical compositions with a highest probability as compared to the other grammatical compositions, wherein the probability of a grammatical composition is based at least in part on a probability of word strings in the grammatical composition.