Skip to content

Commit

Permalink
Merge pull request #4 from hisamafahri/main
Browse files Browse the repository at this point in the history
feat: add Indonesian blocklist
  • Loading branch information
4kimov authored Nov 27, 2023
2 parents 0db61e2 + ef2b602 commit b748878
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
67 changes: 67 additions & 0 deletions data/id.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
[
"anjing",
"anjrit",
"asu",
"babami",
"babi",
"bagudung",
"bajingan",
"banci",
"bangsat",
"bejad",
"bejat",
"bencong",
"bodat",
"borjong",
"brengsek",
"bungul",
"burit",
"dancuk",
"gembel",
"gila",
"heang",
"hencet",
"henceut",
"itil",
"jancuk",
"jembut",
"kacuk",
"kampang",
"kampret",
"kanciang",
"kelentit",
"keparat",
"kimak",
"klitoris",
"kolop",
"kontol",
"kunyuk",
"lonte",
"maho",
"memek",
"nenen",
"ngentot",
"ngulum",
"pantat",
"pantek",
"pecun",
"penis",
"pentil",
"pepek",
"perek",
"pilat",
"pukimak",
"sarap",
"sempak",
"setan",
"silit",
"sinting",
"taek",
"tai",
"taptei",
"teho",
"tetek",
"titit",
"tolol",
"totong"
]
3 changes: 3 additions & 0 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const DATA_EN: &str = include_str!("../data/en.json");
const DATA_ES: &str = include_str!("../data/es.json");
const DATA_FR: &str = include_str!("../data/fr.json");
const DATA_HI: &str = include_str!("../data/hi.json");
const DATA_ID: &str = include_str!("../data/id.json");
const DATA_IT: &str = include_str!("../data/it.json");
const DATA_PT: &str = include_str!("../data/pt.json");

Expand All @@ -20,6 +21,7 @@ pub fn get_data() -> Result<HashMap<String, Vec<String>>> {
ret.insert("es".to_string(), serde_json::from_str(DATA_ES)?);
ret.insert("fr".to_string(), serde_json::from_str(DATA_FR)?);
ret.insert("hi".to_string(), serde_json::from_str(DATA_HI)?);
ret.insert("id".to_string(), serde_json::from_str(DATA_ID)?);
ret.insert("it".to_string(), serde_json::from_str(DATA_IT)?);
ret.insert("pt".to_string(), serde_json::from_str(DATA_PT)?);

Expand All @@ -29,6 +31,7 @@ pub fn get_data() -> Result<HashMap<String, Vec<String>>> {
all.append(&mut serde_json::from_str(DATA_ES)?);
all.append(&mut serde_json::from_str(DATA_FR)?);
all.append(&mut serde_json::from_str(DATA_HI)?);
all.append(&mut serde_json::from_str(DATA_ID)?);
all.append(&mut serde_json::from_str(DATA_IT)?);
all.append(&mut serde_json::from_str(DATA_PT)?);
ret.insert("blocklist".to_string(), all);
Expand Down

0 comments on commit b748878

Please sign in to comment.