CheckGrammarOptions.ImproveStylistics
CheckGrammarOptions ImproveStylistics property. Allows to specify either AI will try to improve stylistics of the text being proofed. Default value is false.
CheckGrammarOptions.ImproveStylistics property
Allows to specify either AI will try to improve stylistics of the text being proofed. Default value is false
.
public bool ImproveStylistics { get; set; }
Examples
Shows how to create custom OpenAiModel and perform grammar checking using Fluent API.
string apiUrl = Environment.GetEnvironmentVariable("CUSTOM_OPENAI_URL", EnvironmentVariableTarget.User);
string apiName = Environment.GetEnvironmentVariable("CUSTOM_OPENAI_NAME", EnvironmentVariableTarget.User);
string apiKey = Environment.GetEnvironmentVariable("CUSTOM_OPENAI_KEY", EnvironmentVariableTarget.User);
AiModel model = OpenAiModel.Create(apiUrl, apiName, apiKey);
GrammarCheckerContext context = new GrammarCheckerContext(model);
context.CheckGrammarOptions.ImproveStylistics = true;
GrammarChecker.Create(context)
.From(MyDir + "SimpleAI.docx")
.To(ArtifactsDir + "CheckGrammar.docx")
.Execute();
See Also
- class CheckGrammarOptions
- namespace Wordize.AI
- assembly Wordize