Skip to contents

This function uses GPT-3 to assist in editing text for spelling, grammar, word count, and clarity. It is a companion function for the run grammar checker Shiny app. The function takes in the following parameters:

Usage

check_grammar_gpt(text_to_edit, user_choice, model_type)

Arguments

text_to_edit:

The original text that needs editing.

user_choice:

A character value indicating the type of editing required. Possible values include "spelling_grammar", "word_count", or "clarity".

model_type:

A character value indicating the GPT-3 model to use, these are supplied by the shiny app.

Value

Returns the edited text as a string.