fixed typos in docs and code comments

This commit is contained in:
biswajit-k
2023-03-06 17:09:38 +05:30
parent 8191c747b9
commit 36388cafe9
7 changed files with 9 additions and 9 deletions

View File

@@ -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
"""

View File

@@ -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.
"""

View File

@@ -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)

View File

@@ -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

View File

@@ -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.