Semantic
Semantic File Paths: Making File Systems Flow Like How We Think
When we say file paths should be like humans, we mean they should recognize that "delete" and "remove" are the same action—just like people do. Most current file systems and application routing are rigid and literal: /delete/user is different from /remove/user. This is efficient for computers, but it creates friction for humans, who often remember actions as concepts rather than precise terms.
The Human Mind and Language
Humans operate semantically, not syntactically. If you ask someone to add a note, they might type "create note", "new note", or "add note", expecting the system to intuitively understand. Rigid systems force us to memorize exact commands, URLs, or paths, interrupting flow and creativity.
The Vision of a Semantic System
A truly flowing file system or API would:
- Treat semantically equivalent terms as interchangeable in usage.
/users/delete/:idand/users/remove/:idwould route identically.- "add", "create", "new" would all find/create resources.
- Index all relevant synonyms, allowing both user commands and AI agents to use the language naturally.
- Store and present canonical representations internally, avoiding structural ambiguity but offering linguistic flexibility at the interface.
The Architecture
- Semantic Parsing Layer: Incoming path or command is parsed using a synonym dictionary or an embedding model. "delete", "remove", "erase" are mapped to the same intent.
- Routing: Intent is dispatched to canonical underlying actions, leaving the user or agent free to use their own language (or even their own language, in the literal sense—think multilingual support).
- Disambiguation Only When Necessary: If two concepts truly differ ("archive" vs. "delete"), explicit distinction is enforced. Otherwise, the system prefers inclusivity and understanding.
Benefits
- Reduces user cognitive load: Users don’t need to memorize or guess the correct command—“the system just gets what I mean.”
- Enables richer AI integration: Natural language agents can fluidly interact with the file system without worrying about brittle keywords.
- Helps with accessibility and internationalization: The same action can be accessed via multiple phrasings or even multiple languages.
- Boosts creativity and adoption: Lower entry barriers and greater flexibility make the system approachable for everyone.
Implementation Considerations
- Building and maintaining a robust semantic map (using NLP techniques or ML embeddings) is key.
- Logging synonyms and user preference can refine the mapping over time.
- Documentation and examples still reference canonical paths for clarity, but the system remains forgiving and adaptable in practice.
Summary
A semantic file system or API aligns digital organization with how humans think—through concepts and meaning rather than rigid words. By recognizing and unifying synonym actions like "delete" and "remove", we make systems more intuitive, accessible, and powerful for everyone.