@finbheara/domain 0.29.0 → 0.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -121,8 +121,22 @@ geocode("Yonkers, NY").region; // "IDTANA-MARO"
121
121
  geocode("Brooklyn").isPlace(); // false: a town of six US states and more, so only
122
122
  // `Brooklyn, NY` reads
123
123
  place("Drogheda").arm; // "unread": the store holds no Drogheda
124
+ geocode("Prague", { near: "RCCEA", declared: true }).isPlace();
125
+ // false: the town lies outside the context, so
126
+ // no namesake town is read
127
+ geocode("Fife").isPlace(); // false: a town of Washington, and a council area
128
+ // of Scotland
124
129
  ```
125
130
 
131
+ The layer reads a bare town by its name alone, so it reads one only where nothing contradicts
132
+ it. A context (a `country` or `near`, read by the store, never as a town of the layer) that
133
+ reads to ONE place which neither holds the town nor shares its country stops the layer: `Prague`
134
+ near `RCCEA` and `Whitecross` under `Ireland` and `Ulster` read nothing. A context the store
135
+ reads nothing for, or reads as several places, stops nothing, so with no context
136
+ `geocode("Prague")` is still Prague, Oklahoma. A town named like a GeoNames admin2 area of those
137
+ six countries that does not hold it (`Fife`) reads only where a context places it. A print with a
138
+ qualifier (`Yonkers, NY`) is never stopped: the context never overrules the print.
139
+
126
140
  A `Place` is one of four arms: `resolved`, `plural` (a print naming more than one place),
127
141
  `ambiguous` (one print, several readings) and `unread`. Only `conflict` between two readings
128
142
  says they cannot be one place; `same`, `contains` and `overlaps` do not.
@@ -3852,7 +3852,7 @@ var PLACE_NODES = [
3852
3852
  kind: "subdivision",
3853
3853
  name: "Northern Ireland",
3854
3854
  geo: "GBR",
3855
- admin: null,
3855
+ admin: "ULSTER",
3856
3856
  prints: ["northern ireland"],
3857
3857
  codes: ["GB-NIR", "GBR-NIR"]
3858
3858
  },