Added the informal address to the BeyondFacts Lab (#1176)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-08 21:10:51 +01:00
1 parent b6c3fbb5db
commit e77645f44c
48 files changed
+1254 -160

No files matched your search

@@ -1,4 +1,5 @@
using AIStudio.Provider;
using AIStudio.Tools.PluginSystem;
namespace AIStudio.Dialogs.Settings;
@@ -7,6 +8,19 @@ namespace AIStudio.Dialogs.Settings;
/// </summary>
public partial class SettingsDialogBeyondFactsLab : SettingsDialogBase
{
/// <summary>
/// Whether the language of the app tells a formal address from an informal one, so that the form of address
/// is a choice at all.
/// </summary>
private bool offersFormOfAddress;
/// <inheritdoc />
protected override async Task OnInitializedAsync()
{
await base.OnInitializedAsync();
this.offersFormOfAddress = (await this.SettingsManager.GetActiveLanguagePlugin()).HasInformalAddress();
}
/// <summary>
/// Shows the minimum confidence which applies, never one below the floor of the lab.
/// </summary>