Softanza
StartFrançais
Softanza
The library documents itself · NLP & linguistics

stzListOfEntities

29 own methods · 0 forms written with extensions, listed under their method · Also inherits from stzList (878)

also named: stzEntities

the source: base/natural/stzListOfEntities.ring(opens in a new tab) · All classes · The area reference: NLP & linguistics

Under each method, its extensions (Q CS XT Z ZZ IB W U): bold and ticked, it exists; struck, it does not. The extensions and what they mean

Examples: 0 come from the library's tests; 14 were composed from each method's signature and run for this page, on a fresh object, for example o1 = new stzListOfEntities([ [ :name = "alice", :type = "person", :age = 30 ], [ :name = "bob", :type = "person", :age = 25 ], [ :name = "ferrari", :type = "car", :brand = "ferrari" ] ]). 15 methods have none yet. Examples run on 2026-10-04 07:31 inside the library at commit 0e72e2e2c.

Method
Explanation, as the source carries it
init
(no comment in the source: the name reads as a sentence) initno extension
Content
(no comment in the source: the name reads as a sentence) contentalso written: Entities · ListOfEntitiesQCSXTZZZIBWU
Value
(no comment in the source: the name reads as a sentence) valueno extension
Copy
(no comment in the source: the name reads as a sentence) copyno extension
AddEntity
(no comment in the source: the name reads as a sentence) add entityno extension
AppendEntity
(no comment in the source: the name reads as a sentence) append entityno extension
AddEntities
(no comment in the source: the name reads as a sentence) add entitiesno extension
EntitiesNames
(no comment in the source: the name reads as a sentence) entities namesalso written: Names
composed example
o1 = new stzListOfEntities([ [ :name = "alice", :type = "person", :age = 30 ], [ :name = "bob", :type = "person", :age = 25 ], [ :name = "ferrari", :type = "car", :brand = "ferrari" ] ])
? @@( o1.EntitiesNames() )
#--> [ "alice", "bob", "ferrari" ]
composed from the signature, run for this page
no extension
EntitiesTypes
(no comment in the source: the name reads as a sentence) entities typesalso written: Types
composed example
o1 = new stzListOfEntities([ [ :name = "alice", :type = "person", :age = 30 ], [ :name = "bob", :type = "person", :age = 25 ], [ :name = "ferrari", :type = "car", :brand = "ferrari" ] ])
? @@( o1.EntitiesTypes() )
#--> [ "person", "person", "car" ]
composed from the signature, run for this page
no extension
UniqueTypes
(no comment in the source: the name reads as a sentence) unique types
composed example
o1 = new stzListOfEntities([ [ :name = "alice", :type = "person", :age = 30 ], [ :name = "bob", :type = "person", :age = 25 ], [ :name = "ferrari", :type = "car", :brand = "ferrari" ] ])
? @@( o1.UniqueTypes() )
#--> [ "person", "car" ]
composed from the signature, run for this page
QCSXTZZZIBWU
EntityN
(no comment in the source: the name reads as a sentence) entity nalso written: Entity
composed example
o1 = new stzListOfEntities([ [ :name = "alice", :type = "person", :age = 30 ], [ :name = "bob", :type = "person", :age = 25 ], [ :name = "ferrari", :type = "car", :brand = "ferrari" ] ])
? @@( o1.EntityN(2) )
#--> [ [ "name", "bob" ], [ "type", "person" ], [ "age", 25 ] ]
composed from the signature, run for this page
no extension
FirstEntity
(no comment in the source: the name reads as a sentence) first entity
composed example
o1 = new stzListOfEntities([ [ :name = "alice", :type = "person", :age = 30 ], [ :name = "bob", :type = "person", :age = 25 ], [ :name = "ferrari", :type = "car", :brand = "ferrari" ] ])
? @@( o1.FirstEntity() )
#--> [ [ "name", "alice" ], [ "type", "person" ], [ "age", 30 ] ]
composed from the signature, run for this page
no extension
LastEntity
(no comment in the source: the name reads as a sentence) last entity
composed example
o1 = new stzListOfEntities([ [ :name = "alice", :type = "person", :age = 30 ], [ :name = "bob", :type = "person", :age = 25 ], [ :name = "ferrari", :type = "car", :brand = "ferrari" ] ])
? @@( o1.LastEntity() )
#--> [ [ "name", "ferrari" ], [ "type", "car" ], [ "brand", "ferrari" ] ]
composed from the signature, run for this page
no extension
NumberOfEntities
(no comment in the source: the name reads as a sentence) number of entitiesalso written: Size · Count
composed example
o1 = new stzListOfEntities([ [ :name = "alice", :type = "person", :age = 30 ], [ :name = "bob", :type = "person", :age = 25 ], [ :name = "ferrari", :type = "car", :brand = "ferrari" ] ])
? o1.NumberOfEntities()
#--> 3
composed from the signature, run for this page
no extension
IsEmpty
(no comment in the source: the name reads as a sentence) is empty
composed example
o1 = new stzListOfEntities([ [ :name = "alice", :type = "person", :age = 30 ], [ :name = "bob", :type = "person", :age = 25 ], [ :name = "ferrari", :type = "car", :brand = "ferrari" ] ])
? o1.IsEmpty()
#--> 0
composed from the signature, run for this page
no extension
RemoveEntity
(no comment in the source: the name reads as a sentence) remove entityno extension
RemoveEntityN
(no comment in the source: the name reads as a sentence) remove entity n
composed example
o1 = new stzListOfEntities([ [ :name = "alice", :type = "person", :age = 30 ], [ :name = "bob", :type = "person", :age = 25 ], [ :name = "ferrari", :type = "car", :brand = "ferrari" ] ])
o1.RemoveEntityN(2)
? @@( o1.Content() )
#--> [ [ [ "name", "alice" ], [ "type", "person" ], [ "age", 30 ] ], [ [ "name", "ferrari" ], [ "type", "car" ], [ "brand", "ferrari" ] ] ]
composed from the signature, run for this page
no extension
FindEntityByName
(no comment in the source: the name reads as a sentence) find entity by name
composed example
o1 = new stzListOfEntities([ [ :name = "alice", :type = "person", :age = 30 ], [ :name = "bob", :type = "person", :age = 25 ], [ :name = "ferrari", :type = "car", :brand = "ferrari" ] ])
? o1.FindEntityByName("bob")
#--> 2
composed from the signature, run for this page
no extension
FindEntitiesByType
(no comment in the source: the name reads as a sentence) find entities by typeno extension
EntitiesOfType
(no comment in the source: the name reads as a sentence) entities of typeno extension
ContainsEntity
(no comment in the source: the name reads as a sentence) contains entityalso written: HasEntityno extension
ContainsName
(no comment in the source: the name reads as a sentence) contains namealso written: HasName
composed example
o1 = new stzListOfEntities([ [ :name = "alice", :type = "person", :age = 30 ], [ :name = "bob", :type = "person", :age = 25 ], [ :name = "ferrari", :type = "car", :brand = "ferrari" ] ])
? o1.ContainsName("bob")
#--> 1
composed from the signature, run for this page
no extension
ContainsType
(no comment in the source: the name reads as a sentence) contains typealso written: HasType
composed example
o1 = new stzListOfEntities([ [ :name = "alice", :type = "person", :age = 30 ], [ :name = "bob", :type = "person", :age = 25 ], [ :name = "ferrari", :type = "car", :brand = "ferrari" ] ])
? o1.ContainsType("car")
#--> 1
composed from the signature, run for this page
no extension
CountByType
(no comment in the source: the name reads as a sentence) count by type
composed example
o1 = new stzListOfEntities([ [ :name = "alice", :type = "person", :age = 30 ], [ :name = "bob", :type = "person", :age = 25 ], [ :name = "ferrari", :type = "car", :brand = "ferrari" ] ])
? o1.CountByType("person")
#--> 2
composed from the signature, run for this page
no extension
Clear
(no comment in the source: the name reads as a sentence) clearno extension
SortByName
(no comment in the source: the name reads as a sentence) sort by nameno extension
SortByType
(no comment in the source: the name reads as a sentence) sort by type
composed example
o1 = new stzListOfEntities([ [ :name = "alice", :type = "person", :age = 30 ], [ :name = "bob", :type = "person", :age = 25 ], [ :name = "ferrari", :type = "car", :brand = "ferrari" ] ])
o1.SortByType()
? @@( o1.Content() )
#--> [ [ [ "name", "ferrari" ], [ "type", "car" ], [ "brand", "ferrari" ] ], [ [ "name", "alice" ], [ "type", "person" ], [ "age", 30 ] ], [ [ "name", "bob" ], [ "type", "person" ], [ "age", 25 ] ] ]
composed from the signature, run for this page
no extension
FilterByTypeQ
Cuts the entities of one type into their own list -- an OBJECT, hence Q. For the plain data, EntitiesOfType() already answers.no extension
Show
(no comment in the source: the name reads as a sentence) showno extension