checkWord method
Check if a word is part of the map.
Implementation
bool checkWord(
Map<String, String> replaceMap,
Map<String, String> keepMap,
List<List<dynamic>> rules,
String word,
) {
final token = word.toLowerCase();
if (keepMap.containsKey(token)) {
return true;
}
if (replaceMap.containsKey(token)) {
return false;
}
return sanitizeWord(token, token, rules) == token;
}