LMMgr // Add .checkIfPhrasePairIsFiltered().

This commit is contained in:
ShikiSuen 2023-09-07 01:49:58 +08:00
parent 919278d9cf
commit 5cf913877c
1 changed files with 8 additions and 0 deletions

View File

@ -281,6 +281,14 @@ public class LMMgr {
)
}
public static func checkIfPhrasePairIsFiltered(
userPhrase: String,
mode: Shared.InputMode,
keyArray: [String]
) -> Bool {
Self.getLM(mode: mode).isPairFiltered(pair: .init(keyArray: keyArray, value: userPhrase))
}
public static func countPhrasePairs(
keyArray: [String],
mode: Shared.InputMode,