Briefle words · Code & architecture
Pluralization convention
The rule that lists get plural names and single items get singular names.
Say it to an AI
JSON response for GET /v1/clinics/:id/day?date= powering the daily schedule screen: clinic, doctors, appointments, the current patient, rooms and openSlots. Follow a strict pluralization convention: plural camelCase keys for every array, singular for single objects or ids, and no Hungarian-style 'List' suffixes.
How an expert would brief the stronger version of “Clinic day endpoint”.
See it
Try it as a puzzle →JSON response in an API client for the endpoint that powers a clinic's daily schedule screen.
Why: B follows it everywhere; A breaks it both ways, with 'doctor' as a list and 'openSlot' holding three times.
Related words
Room 2 · Naming
Learn “Pluralization convention” in a five-minute lesson