from nominatim.typing import Protocol
-class Analyser(Protocol):
+class Analyzer(Protocol):
""" The `create()` function of an analysis module needs to return an
object that implements the following functions.
"""
used freely by the analysis module as needed.
"""
- def create(self, normalizer: Any, transliterator: Any, config: Any) -> Analyser:
+ def create(self, normalizer: Any, transliterator: Any, config: Any) -> Analyzer:
""" Create a new instance of the analyser.
A separate instance of the analyser is created for each thread
when used in multi-threading context.
config: The object that was returned by the call to configure().
Returns:
- A new analyzer instance. This must be a class that implements
- the Analyser protocol.
+ A new analyzer instance. This must be an object that implements
+ the Analyzer protocol.
"""