2024-08-23 16:11:54 +00:00
|
|
|
namespace AIStudio.Assistants.RewriteImprove;
|
|
|
|
|
|
|
|
public static class SentenceStructureExtensions
|
|
|
|
{
|
2025-05-04 12:59:30 +00:00
|
|
|
private static string TB(string fallbackEN) => Tools.PluginSystem.I18N.I.T(fallbackEN, typeof(SentenceStructureExtensions).Namespace, nameof(SentenceStructureExtensions));
|
|
|
|
|
2024-08-23 16:11:54 +00:00
|
|
|
public static string Name(this SentenceStructure sentenceStructure) => sentenceStructure switch
|
|
|
|
{
|
2025-05-04 12:59:30 +00:00
|
|
|
SentenceStructure.ACTIVE => TB("Active voice"),
|
|
|
|
SentenceStructure.PASSIVE => TB("Passive voice"),
|
2024-08-23 16:11:54 +00:00
|
|
|
|
2025-05-04 12:59:30 +00:00
|
|
|
_ => TB("Not Specified"),
|
2024-08-23 16:11:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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,
|
|
|
|
};
|
|
|
|
}
|