aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2024-06-01 12:53:40 +0100
committerGravatar Chris Lovering <[email protected]>2024-06-01 12:53:40 +0100
commit9e6fc4033a2797c94185775b83518d97ddc1f05f (patch)
tree38fbe2f2ecea05085744ce8aed81fafce6af931c
parentBump dependencies to latest (diff)
Increase accuracy of the system infomration parser
-rw-r--r--arthur/apis/systems/lib9front.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/arthur/apis/systems/lib9front.py b/arthur/apis/systems/lib9front.py
index a527a6e..2b7dd06 100644
--- a/arthur/apis/systems/lib9front.py
+++ b/arthur/apis/systems/lib9front.py
@@ -43,7 +43,14 @@ def generate_blog_comment(blogcom: str) -> str:
else:
out.append(char)
- return "".join(out)
+ return (
+ "".join(out)
+ .replace("website", "message")
+ .replace("blog post", "message")
+ .replace("blog", "message")
+ .replace("post", "message")
+ .replace("article", "message")
+ )
def generate_buzzwords(bullshit: str) -> str: