LMMgr // Add .checkIfPhrasePairIsFiltered().
This commit is contained in:
parent
919278d9cf
commit
5cf913877c
|
@ -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(
|
public static func countPhrasePairs(
|
||||||
keyArray: [String],
|
keyArray: [String],
|
||||||
mode: Shared.InputMode,
|
mode: Shared.InputMode,
|
||||||
|
|
Loading…
Reference in New Issue