Edit text for spelling, grammar, word count, clarity using GPT-3
Source:R/grammar_shiny.R
check_grammar_gpt.Rd
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:
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.