alpha01 backoffice: crossword engine, lexicon curation and JSON contract
This commit is contained in:
138
crossword_contract_example_response.json
Normal file
138
crossword_contract_example_response.json
Normal file
@@ -0,0 +1,138 @@
|
||||
{
|
||||
"schema_version": "1.0",
|
||||
"request_id": "req-2026-04-28-0001",
|
||||
"crossword_id": "cw-2026-04-28-transport-0001",
|
||||
"generated_at": "2026-04-28T17:06:42+02:00",
|
||||
"status": "ok",
|
||||
"generator": {
|
||||
"topic": [
|
||||
"transport"
|
||||
],
|
||||
"difficulty": "medium",
|
||||
"seed": 2,
|
||||
"runtime_lexicon": "lexicon_it_curated_llm_aggressive.json"
|
||||
},
|
||||
"summary": {
|
||||
"title": "Cruciverba a tema trasporti",
|
||||
"subtitle": "Schema generato automaticamente",
|
||||
"rows": 12,
|
||||
"cols": 12,
|
||||
"total_words": 6,
|
||||
"intersections": 7
|
||||
},
|
||||
"grid": {
|
||||
"rows": 12,
|
||||
"cols": 12,
|
||||
"cell_size_hint": 32,
|
||||
"cells": [
|
||||
{
|
||||
"row": 0,
|
||||
"col": 0,
|
||||
"kind": "letter",
|
||||
"solution": "A",
|
||||
"display": "",
|
||||
"number": 1,
|
||||
"across_entry_id": "A1",
|
||||
"down_entry_id": null,
|
||||
"is_prefilled": false
|
||||
},
|
||||
{
|
||||
"row": 0,
|
||||
"col": 1,
|
||||
"kind": "letter",
|
||||
"solution": "M",
|
||||
"display": "",
|
||||
"number": null,
|
||||
"across_entry_id": "A1",
|
||||
"down_entry_id": "D2",
|
||||
"is_prefilled": false
|
||||
},
|
||||
{
|
||||
"row": 0,
|
||||
"col": 2,
|
||||
"kind": "block",
|
||||
"solution": null,
|
||||
"display": null,
|
||||
"number": null,
|
||||
"across_entry_id": null,
|
||||
"down_entry_id": null,
|
||||
"is_prefilled": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"entries": [
|
||||
{
|
||||
"entry_id": "A1",
|
||||
"number": 1,
|
||||
"direction": "across",
|
||||
"answer": "AMBULANZA",
|
||||
"answer_length": 9,
|
||||
"row": 0,
|
||||
"col": 0,
|
||||
"cells": [
|
||||
[0, 0],
|
||||
[0, 1],
|
||||
[0, 2]
|
||||
],
|
||||
"clue": "Veicolo di soccorso sanitario.",
|
||||
"clue_source": "semantic_definition",
|
||||
"topics": [
|
||||
"transport",
|
||||
"health"
|
||||
],
|
||||
"pos": "NOUN",
|
||||
"is_seed": true,
|
||||
"added_by_filler": false,
|
||||
"confidence": 0.95
|
||||
}
|
||||
],
|
||||
"clues": {
|
||||
"across": [
|
||||
{
|
||||
"number": 1,
|
||||
"entry_id": "A1",
|
||||
"text": "Veicolo di soccorso sanitario.",
|
||||
"enumeration": 9,
|
||||
"topic_match": true,
|
||||
"source": "semantic_definition"
|
||||
}
|
||||
],
|
||||
"down": []
|
||||
},
|
||||
"solution": {
|
||||
"grid_rows": [
|
||||
"AM#ULA######",
|
||||
"##B#########"
|
||||
],
|
||||
"words": [
|
||||
"AMBULANZA"
|
||||
]
|
||||
},
|
||||
"diagnostics": {
|
||||
"seed_words_requested": 19,
|
||||
"seed_words_placed": 19,
|
||||
"filler_words_added": 5,
|
||||
"filled_cells": 84,
|
||||
"empty_cells": 18,
|
||||
"empty_ratio": 0.1765,
|
||||
"target_empty_ratio": 0.1667,
|
||||
"topic_words": 21,
|
||||
"off_topic_words": 3,
|
||||
"pos_counts": {
|
||||
"sostantivi": 20,
|
||||
"aggettivi": 2,
|
||||
"verbi": 1,
|
||||
"avverbi": 0,
|
||||
"preposizioni": 0,
|
||||
"congiunzioni": 0,
|
||||
"altri": 1
|
||||
},
|
||||
"generation_seconds": 124.6
|
||||
},
|
||||
"artifacts": {
|
||||
"pdf_player": null,
|
||||
"pdf_solution": null,
|
||||
"thumbnail": null,
|
||||
"html_preview": null
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user