Dog fields
All nine fields, aliases, setting attributes, increment and decrement verbs.
Each dog has nine stored fields. Toys and treats are separate counters (items vs food). breed is not a stored field.
Reading an object name as a field on a dog counts how many of that object are in the dog's inventory (e.g. how many balls she has if ball is a registered object).
Complete field reference
| Field | Type | Story words (aliases) |
|---|---|---|
food | number | treat, treats, snack, snacks, cookie, cookies, biscuit, biscuits, food |
items | number | toy, toys, item, items, puppy, puppies, bed, beds, walk, walks, nap, naps, trick, tricks, friend, friends, squirrel, squirrels, zoomies, baths |
age | number | age |
name | string | name, nickname |
description | string | description, collar, tag, owner, family |
color | string | color, species, gender |
inventory | string (comma list) | inventory, belongings |
happy | boolean | goodboy, goodgirl, gooddog, happy, trained, sleepy, tired, excited, muddy, wet, dirty, clean, sick, healthy, rescued, adopted, loyal, stubborn, clever, silly, calm, noisy, quiet, lonely |
fed | boolean | fed, groomed, washed, vetted |
Set a numeric field
| Line | Parses as | Need to know |
|---|---|---|
my labrador has 3 toys | SetAttribute[labrador, items, 3] | has / have glue optional |
She has 2 treats. | SetAttribute[she, food, 2] | Pronouns resolve |
She is 2. | SetAttribute[she, age, 2] | Bare is + number sets age |
He is 5 years old | SetAttribute[he, age, 5] | years old suffix |
labrador 5 | SetAttribute[labrador, age, 5] | Breed then number sets age |
Set text fields
| Line | Parses as | Need to know |
|---|---|---|
Her name is "Bimba" | SetAttribute[her, name, "Bimba"] | Enables Bimba as subject |
labrador nickname "Pepon" | SetAttribute[labrador, name, "Pepon"] | |
her owner is "Alex" | SetAttribute[her, description, "Alex"] | owner → description |
my labrador color is "golden" | SetAttribute[labrador, color, "golden"] | Any string field + is glue |
Set boolean fields
| Line | Parses as | Need to know |
|---|---|---|
my labrador happy is yes | SetAttribute[labrador, happy, true] | true, yes, yeah, yep → true |
she fed is nope | SetAttribute[she, fed, false] | false, no, nope → false |
Set from an expression
| Line | Parses as | Need to know |
|---|---|---|
my labrador treats is count of the items in the cookie jar | SetAttribute[labrador, food, StashAccess(COUNT)] | Right side is any value expression |
my labrador belongings are "ball, stick" | SetAttribute[…, inventory, "ball, stick"] | Replaces inventory list. Glue: is, are, has, was, were, … |
Adjusting fields (increment / decrement)
Default amount is 1 when no number is given (she finds a toy → +1).
Food verbs bump treats when no topic word is given. Item verbs bump toys.
Food increment verbs (+ treats)
feed, feeds, refills, steals, pinch, pinches
Food decrement verbs (− treats)
gulp, gulps, eat, eats, ate, devour, devours, chews, munches, scarfs, wolfs, nibbles
Item increment verbs (+ toys)
grow, grows, grew, gets, receives, earns, gains, collects, snags, nabs, inherits, scores, find, finds, fetch, fetches, discovers, unearths
Item decrement verbs (− toys)
buried, lost, misplaces, breaks, destroys, hides, buries, forgets, tosses, abandons
Examples
| Line | Parses as | Need to know |
|---|---|---|
she misplaces a toy | SetAttribute −1 items | |
she finds a toy | +1 items | |
my labrador feeds 2 treats | +2 food | Explicit topic |
my labrador gulps a treat | +1 food | |
Bimba pinches a treat | +1 food | Pet name as subject |
Greedy breeds lose treats after feeding past a threshold. See Runtime semantics.
