|
|
|
@ -48,9 +48,10 @@ class TokiDictionaryViewModel: ObservableObject {
|
|
|
|
|
var entryMatch = false
|
|
|
|
|
|
|
|
|
|
// Check if word matches toki pona form, even partially
|
|
|
|
|
if value.word.hasPrefix(input) {
|
|
|
|
|
entryMatch = true
|
|
|
|
|
}
|
|
|
|
|
// Commented out because toki words shouldn't be matched in english mode
|
|
|
|
|
// if value.word.hasPrefix(input) {
|
|
|
|
|
// entryMatch = true
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// Check if any part of the word definitions match in English, even partially, but
|
|
|
|
|
// only by prefix (if one of the definition words matches the beginning of the word with
|
|
|
|
|