-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
Hi,
I found quite counter-intuitive (for me) API naming.
In case of _common.Concept we have
@property
def objects(self) -> typing.Tuple[str]:
"""The objects subsumed by the concept."""
return self.extent.members()In case of lattice_members.Concept we have
@property
def extent(self) -> typing.Tuple[str, ...]:
"""The objects subsumed by the concept.
Example:
>>> import concepts
>>> lattice = concepts.Context.fromstring(concepts.EXAMPLE).lattice
>>> lattice['+1',].extent
('1sg', '1pl')
"""
return self._extent.members()and Concept.objects works differently.
I would prefer to have same API, that is, Vector extent can be hidden in concept._extent property, public list of members names can be concept.extent or concept.objects and original concept.objects can be renamed.
Metadata
Metadata
Assignees
Labels
No labels