List unlinked places and unmapped words under Sources, fix them in code with the unmapped skill
Settings > Sources > Unmapped shows the place texts no place resolves, with their roles' countries and companies, and the host words no table maps, and copies both as text. Prep fingerprints places.seed(), so a town or spelling added to the code is seeded and every open role is mapped again at the next prep. app prep unlinked lists the places on the command line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ae978594b4
commit
06ff9f549b
13 files changed
+313
-43
No files matched your search
@@ -932,6 +932,24 @@ def list_unmapped(store: StoreDep) -> list[UnmappedOut]:
|
||||
return [UnmappedOut(**w) for w in store.unmapped()]
|
||||
|
||||
|
||||
class UnlinkedOut(BaseModel):
|
||||
"""A place text the gazetteer does not know (`Store.unlinked_places`)."""
|
||||
|
||||
fold: str
|
||||
text: str
|
||||
roles: int
|
||||
countries: list[tuple[str, int]]
|
||||
companies: list[str]
|
||||
|
||||
|
||||
@router.get("/prep/unlinked")
|
||||
def list_unlinked(store: StoreDep) -> list[UnlinkedOut]:
|
||||
"""The place texts of open roles no place resolves, most roles first:
|
||||
what a city, a spelling or a no-place word in `app/models.py` and
|
||||
`app/places.py` should learn."""
|
||||
return [UnlinkedOut(**p) for p in store.unlinked_places()]
|
||||
|
||||
|
||||
class SearchBody(BaseModel):
|
||||
provider: str
|
||||
name: str = ""
|
||||
|
||||
Reference in new issue
Block a user