Shared Verbs
A file in verbs/ declares one Verb that several Nouns share, with its inverse and input, once.
A file in verbs/ declares one Verb that several Nouns share. It states the Verb once, so Lease.renew and Contract.renew mean the same thing.
verbs/renew.mdxrenew, shared by Lease and Contract
Reference
MDX. Frontmatter is the Verb; the body is its documentation.
| Key | Type | Holds |
|---|---|---|
nouns | Noun names | The Nouns that take the Verb |
inverse | verb | The Verb that undoes it |
input | map | The input every Noun's form shares |
forms | map | Irregular forms only, such as doneBy |
Examples
Minimal
---
nouns: [Lease]
---Leaseline
Leaseline declares a Lease Noun and a Contract Noun for its own vendor agreements.
---
nouns: [Lease, Contract]
inverse: lapse
input:
months: number
---
Renewing extends an agreement by a term; lapsing ends it on its end date.What it builds
The SoftwareBuilder compiles one Verb onto each listed Noun.
Lease.renew,Contract.renewand the inverselapseon each- the Events
Lease.renewedandContract.renewed - one input type, shared by every Noun that takes the Verb
Good to know
- A Verb declared in a Noun file and in
verbs/fails the parse check. - Each Noun keeps its own Verb function.
- Shared Verbs lists every Verb the platform already shares.