Patent attributes
Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for providing suggestions based on document topics. In one aspect, a method includes obtaining textual input provided to a document editing application by a user device for inclusion in a document; providing prior text of the document as input to a classification model that provides document topics for the document based on the prior text, and wherein the classification model was trained based on historical documents of other users; and determining, based on the textual input, to provide textual suggestions for inclusion in the document, and in response: selecting candidate suggestions based on the document topics and a suggestion topic for one of the candidate suggestions, each candidate suggestion comprising one or more words; and providing the selected candidate suggestions to the user device for inclusion in the document.