mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-10 23:27:21 +00:00
25 lines
891 B
C#
25 lines
891 B
C#
namespace AIStudio.Assistants.RewriteImprove;
|
|
|
|
public static class SentenceStructureExtensions
|
|
{
|
|
private static string TB(string fallbackEN) => Tools.PluginSystem.I18N.I.T(fallbackEN, typeof(SentenceStructureExtensions).Namespace, nameof(SentenceStructureExtensions));
|
|
|
|
extension(SentenceStructure sentenceStructure)
|
|
{
|
|
public string Name => sentenceStructure switch
|
|
{
|
|
SentenceStructure.ACTIVE => TB("Active voice"),
|
|
SentenceStructure.PASSIVE => TB("Passive voice"),
|
|
|
|
_ => TB("Not Specified"),
|
|
};
|
|
|
|
public string Prompt => sentenceStructure switch
|
|
{
|
|
SentenceStructure.ACTIVE => " Use an active voice for the sentence structure.",
|
|
SentenceStructure.PASSIVE => " Use a passive voice for the sentence structure.",
|
|
|
|
_ => string.Empty,
|
|
};
|
|
}
|
|
} |