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 same name is considered to refer to the same specific object, but if they have different names but are generic 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 the Entity would change the meaning of the Factor in which the Entity 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 implies other.

A “generic” Entity implies another Entity even if their names are not the same.

Return type

bool

means(other, context=None)

Test if self has the same meaning as other.

A “generic” Entity has the same meaning as another Entity even if their names are not the same.

Return type

bool

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.