This commit is contained in:
mike
2025-12-18 15:02:08 +01:00
parent 107eadee64
commit 10199eaab5
6 changed files with 361 additions and 5 deletions

View File

@@ -0,0 +1,121 @@
{
"gridv2": [
[
"##############"
],
[
"##############"
],
[
"#######L######"
],
[
"#######E##B###"
],
[
"###A#SNUIVEN##"
],
[
"###K###S##S###"
],
[
"###K######T###"
],
[
"##VERSLAAVEND#"
],
[
"###R######D#R#"
],
[
"###H######I#O#"
],
[
"###O#SLOGAN#O#"
],
[
"###F######G#G#"
],
[
"##############"
]
],
"words": [
{
"word": "VERSLAAVEND",
"clue": "Overdrijft aantrekkingskracht",
"startRow": 7,
"startCol": 2,
"direction": "horizontal",
"answer": "VERSLAAVEND",
"arrowRow": 7,
"arrowCol": 1
},
{
"word": "BESTEDING",
"clue": "Korting of prijs",
"startRow": 3,
"startCol": 10,
"direction": "vertical",
"answer": "BESTEDING",
"arrowRow": 2,
"arrowCol": 10
},
{
"word": "AKKERHOF",
"clue": "Naam van de winkel",
"startRow": 4,
"startCol": 3,
"direction": "vertical",
"answer": "AKKERHOF",
"arrowRow": 3,
"arrowCol": 3
},
{
"word": "SNUIVEN",
"clue": "Korte handeling bij verslaving",
"startRow": 4,
"startCol": 5,
"direction": "horizontal",
"answer": "SNUIVEN",
"arrowRow": 4,
"arrowCol": 4
},
{
"word": "SLOGAN",
"clue": "Marketing tekst",
"startRow": 10,
"startCol": 5,
"direction": "horizontal",
"answer": "SLOGAN",
"arrowRow": 10,
"arrowCol": 4
},
{
"word": "DROOG",
"clue": "Tegenstrijdig fruittype",
"startRow": 7,
"startCol": 12,
"direction": "vertical",
"answer": "DROOG",
"arrowRow": 6,
"arrowCol": 12
},
{
"word": "LEUS",
"clue": "Kortere slogan tekst",
"startRow": 2,
"startCol": 7,
"direction": "vertical",
"answer": "LEUS",
"arrowRow": 1,
"arrowCol": 7
}
],
"difficulty": 1,
"rewards": {
"coins": 50,
"stars": 2,
"hints": 1
}
}

View File

@@ -0,0 +1,114 @@
{
"gridv2": [
[
"##############"
],
[
"##############"
],
[
"########N#####"
],
[
"######M#I#R###"
],
[
"###N##E#E#U###"
],
[
"###E##N#U#G#S#"
],
[
"###D##S#W#G#M#"
],
[
"##KEIZERSNEDE#"
],
[
"###R##N#U#N#R#"
],
[
"###L##W#U#P#I#"
],
[
"###A##E#R#R#G#"
],
[
"###N##R###I#E#"
],
[
"###D##K###K###"
],
[
"##############"
]
],
"words": [
{
"word": "KEIZERSNEDE",
"clue": "operatie",
"startRow": 7,
"startCol": 2,
"direction": "horizontal",
"answer": "KEIZERSNEDE",
"arrowRow": 7,
"arrowCol": 1
},
{
"word": "MENSENWERK",
"clue": "arbeid",
"startRow": 3,
"startCol": 6,
"direction": "vertical",
"answer": "MENSENWERK",
"arrowRow": 2,
"arrowCol": 6
},
{
"word": "RUGGENPRIK",
"clue": "anesthesie",
"startRow": 3,
"startCol": 10,
"direction": "vertical",
"answer": "RUGGENPRIK",
"arrowRow": 2,
"arrowCol": 10
},
{
"word": "NIEUWSUUR",
"clue": "media",
"startRow": 2,
"startCol": 8,
"direction": "vertical",
"answer": "NIEUWSUUR",
"arrowRow": 1,
"arrowCol": 8
},
{
"word": "NEDERLAND",
"clue": "land",
"startRow": 4,
"startCol": 3,
"direction": "vertical",
"answer": "NEDERLAND",
"arrowRow": 3,
"arrowCol": 3
},
{
"word": "SMERIGE",
"clue": "complex",
"startRow": 5,
"startCol": 12,
"direction": "vertical",
"answer": "SMERIGE",
"arrowRow": 4,
"arrowCol": 12
}
],
"difficulty": 1,
"rewards": {
"coins": 50,
"stars": 2,
"hints": 1
}
}

View File

@@ -0,0 +1,118 @@
{
"gridv2": [
[
"#############"
],
[
"#############"
],
[
"#####F#D##G##"
],
[
"#####B#E##O##"
],
[
"#####I#LEAVE#"
],
[
"#####W#E##T##"
],
[
"####BONGI#S##"
],
[
"######A######"
],
[
"##DOWNT######"
],
[
"######U######"
],
[
"######R######"
],
[
"#############"
]
],
"words": [
{
"word": "BONGI",
"clue": "Ex-podcaster Dan Bongino",
"startRow": 6,
"startCol": 4,
"direction": "horizontal",
"answer": "BONGI",
"arrowRow": 6,
"arrowCol": 3
},
{
"word": "DELEG",
"clue": "Stepped down als FBIdeputiendirector",
"startRow": 2,
"startCol": 7,
"direction": "vertical",
"answer": "DELEG",
"arrowRow": 1,
"arrowCol": 7
},
{
"word": "FBIWO",
"clue": "Gaat uit de FBI na een grote stap",
"startRow": 2,
"startCol": 5,
"direction": "vertical",
"answer": "FBIWO",
"arrowRow": 1,
"arrowCol": 5
},
{
"word": "LEAVE",
"clue": "Bongino kondigt vertrek aan",
"startRow": 4,
"startCol": 7,
"direction": "horizontal",
"answer": "LEAVE",
"arrowRow": 4,
"arrowCol": 6
},
{
"word": "NATUR",
"clue": "Natuurlijk een carrièreswitch",
"startRow": 6,
"startCol": 6,
"direction": "vertical",
"answer": "NATUR",
"arrowRow": 5,
"arrowCol": 6
},
{
"word": "DOWNT",
"clue": "Terug op televisie en in het bestuur",
"startRow": 8,
"startCol": 2,
"direction": "horizontal",
"answer": "DOWNT",
"arrowRow": 8,
"arrowCol": 1
},
{
"word": "GOVTS",
"clue": "Nieuwe rol in de Amerikaanse overheid",
"startRow": 2,
"startCol": 10,
"direction": "vertical",
"answer": "GOVTS",
"arrowRow": 1,
"arrowCol": 10
}
],
"difficulty": 1,
"rewards": {
"coins": 50,
"stars": 2,
"hints": 1
}
}

View File

@@ -2,6 +2,10 @@
"date": "2025-12-18", "date": "2025-12-18",
"files": [ "files": [
"crossword_2025-12-18_01_duizenden-lachgascilinders-in-beslag-genomen-in-de.json", "crossword_2025-12-18_01_duizenden-lachgascilinders-in-beslag-genomen-in-de.json",
"crossword_2025-12-18_02_meta-blokkeert-tientallen-queer-en-abortus-account.json" "crossword_2025-12-18_01_slechtste-slogan-van-het-jaar-over-verslavende-dru.json",
"crossword_2025-12-18_02_meta-blokkeert-tientallen-queer-en-abortus-account.json",
"crossword_2025-12-18_02_meta-stopte-onderzoek-dat-schade-van-apps-op-menta.json",
"crossword_2025-12-18_03_30-11-in-nieuwsuur-pijn-bij-keizersnede-netanyahu-.json",
"crossword_2025-12-18_03_dan-bongino-stepping-down-as-fbi-deputy-director.json"
] ]
} }

View File

@@ -10,12 +10,11 @@ import json, re
WORD_RE = re.compile(r"^[A-Z]{3,12}$") WORD_RE = re.compile(r"^[A-Z]{3,12}$")
EMPTY = " " EMPTY = " "
SIZE = 12 SIZE = 11
FEEDS = [ FEEDS = [
"https://feeds.nos.nl/nosnieuwsalgemeen", "https://feeds.nos.nl/nosnieuwsalgemeen",
"https://feeds.nos.nl/nosnieuwstech", "https://feeds.nos.nl/nosnieuwstech",
"http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/world/rss.xml",
] ]
@@ -291,7 +290,7 @@ Formaat exact:
}} }}
Regels: Regels:
- WOORD: alleen letters A-Z, geen streepjes, geen cijfers, lengte 3..12. - WOORD: alleen letters A-Z, geen streepjes, geen cijfers, lengte 3..9.
- waarde: clue in het Nederlands, kort. - waarde: clue in het Nederlands, kort.
- Maak {n_words} items. - Maak {n_words} items.
Thema: {title} Thema: {title}
@@ -316,7 +315,7 @@ Context: {desc[:260]}
if len(wc) < max(6, n_words - 4): if len(wc) < max(6, n_words - 4):
repair = f""" repair = f"""
Zet dit om naar een STRICT JSON OBJECT (geen array) "WOORD":"clue". Zet dit om naar een STRICT JSON OBJECT (geen array) "WOORD":"clue".
WOORD: A-Z only, 3..12, geen streepjes/cijfers. Vervang ongeldige woorden door passende synoniemen. WOORD: A-Z only, 3..9, geen streepjes/cijfers. Vervang ongeldige woorden door passende synoniemen.
Input: Input:
{content} {content}
""".strip() """.strip()