Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more
fix(dictionary): rename auto-learn and split its threshold
altic-devff76a432799f
diff --git a/Sources/Fluid/UI/SettingsSearch.swift b/Sources/Fluid/UI/SettingsSearch.swiftindex 9113dcfa..2dbe7334 100644--- a/Sources/Fluid/UI/SettingsSearch.swift+++ b/Sources/Fluid/UI/SettingsSearch.swift@@ -323,7 +323,7 @@ enum SettingsSearchIndex {),.init(target: .dictionarySuggestions,- title: "Auto-Learn Corrections",+ title: "Learn from my corrections",terms: ["automatic corrections learn words custom dictionary frequency ignore"]),.init(diff --git a/Sources/Fluid/UI/SettingsView.swift b/Sources/Fluid/UI/SettingsView.swiftindex 67b3937c..0e21ead7 100644--- a/Sources/Fluid/UI/SettingsView.swift+++ b/Sources/Fluid/UI/SettingsView.swift@@ -2992,40 +2992,58 @@ private struct DictionarySuggestionsSettingsRow: View {@ObservedObject private var settings = SettingsStore.sharedvar body: some View {- HStack(alignment: .center, spacing: 12) {- VStack(alignment: .leading, spacing: 2) {- Text("Auto-Learn Corrections")- .font(self.theme.typography.bodyStrong)- .foregroundStyle(self.theme.palette.primaryText)- Text("Suggest saving words after you correct dictated text.")- .font(self.theme.typography.bodySmall)- .foregroundStyle(self.theme.palette.secondaryText)- .fixedSize(horizontal: false, vertical: true)- }- .frame(maxWidth: .infinity, alignment: .leading)-- Picker("Suggest after", selection: self.$settings.automaticDictionarySuggestionFrequency) {- ForEach(SettingsStore.AutomaticDictionarySuggestionFrequency.allCases) { frequency in- Text(frequency.displayName).tag(frequency)+ VStack(alignment: .leading, spacing: 12) {+ HStack(alignment: .center, spacing: 12) {+ VStack(alignment: .leading, spacing: 2) {+ Text("Learn from my corrections")+ .font(self.theme.typography.bodyStrong)+ .foregroundStyle(self.theme.palette.primaryText)+ Text("If you retype a word FluidVoice got wrong, it asks to add the right spelling to your dictionary.")+ .font(self.theme.typography.bodySmall)+ .foregroundStyle(self.theme.palette.secondaryText)+ .fixedSize(horizontal: false, vertical: true)}+ .frame(maxWidth: .infinity, alignment: .leading)++ Toggle("Learn from my corrections", isOn: Binding(+ get: { self.settings.automaticDictionaryLearningEnabled },+ set: { enabled in+ self.settings.automaticDictionaryLearningEnabled = enabled+ if !enabled {+ AutomaticDictionaryCorrectionTracker.shared.cancel()+ }+ }+ ))+ .toggleStyle(.switch)+ .tint(self.theme.palette.accent)+ .labelsHidden()}- .pickerStyle(.menu)- .fluidDropdownStyle()- .frame(width: 180)- .disabled(!self.settings.automaticDictionaryLearningEnabled)-- Toggle("", isOn: Binding(- get: { self.settings.automaticDictionaryLearningEnabled },- set: { enabled in- self.settings.automaticDictionaryLearningEnabled = enabled- if !enabled {- AutomaticDictionaryCorrectionTracker.shared.cancel()++ // The threshold only matters while learning is on; keep it visibly subordinate.+ if self.settings.automaticDictionaryLearningEnabled {+ HStack(alignment: .center, spacing: 12) {+ VStack(alignment: .leading, spacing: 2) {+ Text("Ask after")+ .font(self.theme.typography.bodyStrong)+ .foregroundStyle(self.theme.palette.primaryText)+ Text("Wait until you've fixed the same word this many times. Pick 2 or 3 if it asks too often.")+ .font(self.theme.typography.bodySmall)+ .foregroundStyle(self.theme.palette.secondaryText)+ .fixedSize(horizontal: false, vertical: true)+ }+ .frame(maxWidth: .infinity, alignment: .leading)++ Picker("Ask after", selection: self.$settings.automaticDictionarySuggestionFrequency) {+ ForEach(SettingsStore.AutomaticDictionarySuggestionFrequency.allCases) { frequency in+ Text(frequency.displayName).tag(frequency)+ }}+ .pickerStyle(.menu)+ .fluidDropdownStyle()+ .fixedSize()}- ))- .toggleStyle(.switch)- .tint(self.theme.palette.accent)- .labelsHidden()+ .padding(.leading, 16)+ }}}}diff --git a/Sources/Fluid/Views/AutomaticDictionaryCorrectionOverlay.swift b/Sources/Fluid/Views/AutomaticDictionaryCorrectionOverlay.swiftindex 70bc09c8..da877c5a 100644--- a/Sources/Fluid/Views/AutomaticDictionaryCorrectionOverlay.swift+++ b/Sources/Fluid/Views/AutomaticDictionaryCorrectionOverlay.swift@@ -667,7 +667,7 @@ private struct AutomaticDictionaryCorrectionOverlayView: View {private var choiceContent: some View {VStack(alignment: .leading, spacing: 10) {- self.header(title: "Correction noticed", allowsBack: false)+ self.header(title: "Learn this word?", allowsBack: false)self.correctionPair@@ -703,7 +703,7 @@ private struct AutomaticDictionaryCorrectionOverlayView: View {Menu {Button("Ignore This Correction", systemImage: "eye.slash", action: self.onIgnore)- Menu("Suggest After") {+ Menu("Ask after") {ForEach(SettingsStore.AutomaticDictionarySuggestionFrequency.allCases) { frequency inButton {self.onFrequencyChange(frequency)@@ -720,7 +720,7 @@ private struct AutomaticDictionaryCorrectionOverlayView: View {Divider()- Button("Turn Off Auto-Learn", role: .destructive, action: self.onDisableSuggestions)+ Button("Stop asking", role: .destructive, action: self.onDisableSuggestions)} label: {Image(systemName: "ellipsis").font(.fluidSystem(size: 12, weight: .semibold))