Files
AI-Studio/app/MindWork AI Studio/Assistants/SlideBuilder/AudienceAgeGroupExtensions.cs
T

29 lines
1.3 KiB
C#
Raw Normal View History

2026-03-16 10:44:21 +01:00
namespace AIStudio.Assistants.SlideBuilder;
public static class AudienceAgeGroupExtensions
{
private static string TB(string fallbackEN) => Tools.PluginSystem.I18N.I.T(fallbackEN, typeof(AudienceAgeGroupExtensions).Namespace, nameof(AudienceAgeGroupExtensions));
extension(AudienceAgeGroup ageGroup)
2026-03-16 10:44:21 +01:00
{
public string Name() => ageGroup switch
{
AudienceAgeGroup.UNSPECIFIED => TB("Unspecified age group"),
AudienceAgeGroup.CHILDREN => TB("Children"),
AudienceAgeGroup.TEENAGERS => TB("Teenagers"),
AudienceAgeGroup.ADULTS => TB("Adults"),
2026-03-16 10:44:21 +01:00
_ => TB("Unspecified age group"),
};
2026-03-16 10:44:21 +01:00
public string Prompt() => ageGroup switch
{
AudienceAgeGroup.UNSPECIFIED => "Do not tailor the text to a specific age group.",
AudienceAgeGroup.CHILDREN => "Use simple, concrete language with short sentences and minimal jargon.",
AudienceAgeGroup.TEENAGERS => "Use clear, approachable language with relatable examples and limited jargon.",
AudienceAgeGroup.ADULTS => "Use adult-appropriate language with clear structure and direct explanations.",
2026-03-16 10:44:21 +01:00
_ => "Do not tailor the text to a specific age group.",
};
}
2026-03-16 10:44:21 +01:00
}