check_grammar method

check_grammar(source_document, options)

Checks grammar of the provided document. This operation leverages the connected AI model for checking grammar of document.

def check_grammar(self, source_document: aspose.words.Document, options: aspose.words.ai.CheckGrammarOptions):
    ...
ParameterTypeDescription
source_documentDocumentThe document being checked for grammar.
optionsCheckGrammarOptionsOptional settings to control how grammar will be checked.

Returns

A new Document with checked grammar.

See Also