forked from hans/Nominatim
fixed typos in docs and code comments
This commit is contained in:
@@ -55,7 +55,7 @@ class PlaceInfo:
|
||||
|
||||
@property
|
||||
def rank_address(self) -> int:
|
||||
""" The [rank address][1] before ant rank correction is applied.
|
||||
""" The [rank address][1] before any rank correction is applied.
|
||||
|
||||
[1]: ../customize/Ranking.md#address-rank
|
||||
"""
|
||||
|
||||
@@ -21,7 +21,7 @@ class PlaceName:
|
||||
|
||||
In addition to that, a name may have arbitrary additional attributes.
|
||||
How attributes are used, depends on the sanitizers and token analysers.
|
||||
The exception is is the 'analyzer' attribute. This attribute determines
|
||||
The exception is the 'analyzer' attribute. This attribute determines
|
||||
which token analysis module will be used to finalize the treatment of
|
||||
names.
|
||||
"""
|
||||
|
||||
@@ -74,7 +74,7 @@ class _PostcodeSanitizer:
|
||||
|
||||
|
||||
def create(config: SanitizerConfig) -> Callable[[ProcessInfo], None]:
|
||||
""" Create a housenumber processing function.
|
||||
""" Create a function that filters postcodes by their officially allowed pattern.
|
||||
"""
|
||||
|
||||
return _PostcodeSanitizer(config)
|
||||
|
||||
@@ -41,6 +41,6 @@ def _clean_tiger_county(obj: ProcessInfo) -> None:
|
||||
|
||||
|
||||
def create(_: SanitizerConfig) -> Callable[[ProcessInfo], None]:
|
||||
""" Create a housenumber processing function.
|
||||
""" Create a function that preprocesses tags from the TIGER import.
|
||||
"""
|
||||
return _clean_tiger_county
|
||||
|
||||
@@ -12,7 +12,7 @@ If a name already has an analyzer tagged, then this is kept.
|
||||
Arguments:
|
||||
|
||||
filter-kind: Restrict the names the sanitizer should be applied to
|
||||
to the given tags. The parameter expects a list of
|
||||
the given tags. The parameter expects a list of
|
||||
regular expressions which are matched against 'kind'.
|
||||
Note that a match against the full string is expected.
|
||||
whitelist: Restrict the set of languages that should be tagged.
|
||||
|
||||
Reference in New Issue
Block a user