Introduction
Introduction Statistics Contact Development Disclaimer Help
Make guessing on long names a bit more funny. - annna - Annna the nice friendly…
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit ee44db405a309195b9e615156612592d2d669fe1
parent 56bd88325d9acf1fce9aa8cbe0e03245c48e8ec1
Author: Annna Robert-Houdin <[email protected]>
Date: Mon, 10 Apr 2023 12:47:51 +0200
Make guessing on long names a bit more funny.
Diffstat:
M wikipediagame | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/wikipediagame b/wikipediagame
@@ -66,8 +66,11 @@ def main(args):
printsummary = 1
if printsummary == 1:
- summary = w.summary(title).replace("\n", " ")
- for titlepart in title.split(" "):
+ summary = w.summary(title).\
+ replace("\n", " ")
+ splittitle = title.replace(",", " ").\
+ replace("-", " ")
+ for titlepart in splittitle.split():
summary = summary.replace(titlepart, "*" * len(titlepart))
print(summary)
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.