mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-24 05:24:23 +00:00
Made some tools for basic users & also may or may not added a bunch of
nono keywords into the kidunfriendlycontent.json file. Oh, and most of it is sourced from you guessed it LINE Today & Taiwan's garbage news corps >_<
This commit is contained in:
parent
4080eeaa3e
commit
84c176ac09
8 changed files with 69 additions and 32 deletions
|
@ -8,7 +8,7 @@ async function checkUnsafeContent(title: string) {
|
|||
console.log(patterns);
|
||||
newsAnalyzer.setSensitivePatterns(patterns);
|
||||
const kidfriendly = newsAnalyzer.isKidFriendly(title);
|
||||
return kidfriendly;
|
||||
return !kidfriendly;
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue