Entities
- class nettlesome.entities.Entity(**data)
Things that can be referenced in a Statement.
The name of a Term can replace the placeholder in a StatementTemplate
- Parameters
name – An identifier. An
Entity
with the samename
is considered to refer to the same specific object, but if they have different names but aregeneric
and are otherwise the same, then they’re considered to have the same meaning and they evaluate equal to one another.generic – Determines whether a change in the
name
of theEntity
would change the meaning of theFactor
in which theEntity
is embedded.plural – Specifies whether the
Entity
object refers to more than one thing. Can be checked by a StatementTemplate to see whether a verb needs to be made plural.
- implies(other, context=None)
Test if
self
impliesother
.A “generic” Entity implies another Entity even if their names are not the same.
- Return type
- means(other, context=None)
Test if
self
has the same meaning asother
.A “generic” Entity has the same meaning as another Entity even if their names are not the same.
- Return type
- property short_string
Get a short representation of
self
.In Nettlesome, including angle brackets around the representation of an object is an indication that the object is generic.