Improved the rewrite assistant by letting you choose the voice for the sentence structure (#92)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2024-08-23 18:11:54 +02:00
1 parent 537a608e7a
commit bcdbf7dcbd
8 files changed
+48 -2

No files matched your search

@@ -0,0 +1,20 @@
namespace AIStudio.Assistants.RewriteImprove;
public static class SentenceStructureExtensions
{
public static string Name(this SentenceStructure sentenceStructure) => sentenceStructure switch
{
SentenceStructure.ACTIVE => "Active voice",
SentenceStructure.PASSIVE => "Passive voice",
_ => "Not Specified",
};
public static string Prompt(this SentenceStructure sentenceStructure) => sentenceStructure switch
{
SentenceStructure.ACTIVE => " Use an active voice for the sentence structure.",
SentenceStructure.PASSIVE => " Use a passive voice for the sentence structure.",
_ => string.Empty,
};
}