Natural Language Generation in Practice: Building a Usable Campus Running App
This article walks through a practical case of using natural language generation to build a lightweight campus running tracker. It explains how to write a complete prompt with goals, feature lists, constraints, and acceptance criteria, how to control feature scope across scenario, interaction, and data dimensions, and how to validate the generated result through functional, workflow, edge-case, and data checks. It also covers key implementation practices for timing, check-in logic, weather data, privacy, and accessibility, plus a clear view of what generated prototypes can and cannot replace.
1. Background: The Digital Gap in Campus Running
Running is a high-frequency, low-barrier activity on college campuses, yet general-purpose fitness apps tend to share a few common problems: deeply nested feature hierarchies, long core operation paths, obvious commercial interruptions, and poor coverage of personalized needs. For students whose main goal is simply “logging daily exercise,” what they actually need is often just three capabilities: starting and stopping a timer, leaving a check-in record after a completed workout, and using location- or time-based weather information as a decision aid.
The traditional implementation path requires developers to master a full stack of skills: UI development, state management, local or cloud data storage, and third-party data integration. As a result, many “small ideas” stay stuck at the concept stage. Natural language-driven app generation offers a new path for these lightweight needs: users only need to state the goal, constraints, and acceptance criteria clearly, and an AI coding tool converts the requirement into a runnable prototype.
2. Core Method: Turning an “Idea” into an Executable Instruction
The quality of a natural language-generated app depends heavily on how complete the requirement description is. A usable instruction typically contains four parts.
- Goal statement: clarify what problem the app solves, for example “record the duration and count of my runs on the track.”
- Feature list: enumerate the required capabilities, for example “timing, save on finish, history view, check-in.”
- Constraints and exclusions: state what is not wanted, for example “no ad slots, no social growth loops, no complex charts.”
- Acceptance criteria: define what counts as done, for example “open the app and start timing immediately; a record is generated automatically after finishing.”
An example instruction structure:
Build a campus running tracker:- Required: timer, pause, save on finish, history list, consecutive check-in day count- Optional: today's weather and temperature display- Explicitly excluded: ads, community, complex dashboards, sign-up flow- Acceptance: complete one record within three steps; history viewable by date
The value of this approach is that it converts vague statements into decidable conditions and reduces randomness in the generated output.
3. Feature Boundary Control: Why Less Is More
The most reusable lesson from the original practice is the deliberate constraint of feature boundaries. When left unconstrained, generative tools tend to add modules that “look complete,” introducing unnecessary complexity. Boundaries can be controlled along three dimensions.
- Scenario: serve a single scenario only (running on the track), without expanding to cycling, strength training, and so on.
- Interaction: keep the core flow within three steps and avoid multi-level menus.
- Data: keep only necessary fields, such as time, estimated distance, date, and weather.
Example field design:
{"id": "run_20240612_001","startedAt": "2024-06-12T18:32:10+08:00","durationSec": 1860,"distanceKm": 5.2,"weather": { "text": "Cloudy", "temperature": 26 }}
Once the boundaries are clear, the generated result becomes significantly more maintainable, and later iterations do not require restructuring the whole thing.
4. Validating the Generated Result
Generation being complete does not mean the app is usable. A four-layer validation is recommended.
- Functional validation: check each required feature item by item, and confirm the excluded items really do not appear.
- Workflow validation: walk through the full chain of “start — pause — finish — save — view history.”
- Edge-case validation: test mid-way exits, repeated taps, an empty history list, and similar boundary cases.
- Data validation: confirm records persist correctly and that time and time zone display properly.
If deviations appear, there is no need to rewrite the entire requirement; simply append a corrective instruction, for example “sort the history list by date in descending order and show a hint in the empty state,” and converge the result through multiple rounds of iteration.
5. Common Technical Points and Best Practices
- Timing accuracy: compute duration from timestamp differences rather than relying on UI refresh counts.
- Check-in logic: use the calendar day as the unique key for deduplication, and store in a standard time consistently for cross-time-zone scenarios.
- Weather capability: use a general weather data service and request only the current temperature and weather condition to reduce permission and data usage.
- Privacy and compliance: obtain location information on demand, retain it minimally, and avoid enabling background collection by default.
- Accessibility: give buttons clear labels, and make font size and contrast meet basic readability requirements.
If multiple users are needed later, general cloud capabilities can be introduced in layers: object storage for exported files, a message queue for peak shaving, and logging plus monitoring alerts for troubleshooting. There is no need to bring in every component at the prototype stage.
6. A Clear View of Capability Limits
Natural language generation is well suited to quickly validating ideas and producing usable prototypes, but it does not replace architecture design, performance load testing, or security assessment. When real user data, payments, or high concurrency are involved, professional developers still need to fill in the data model, permission system, and operations plan. Positioning the generation tool as a “prototype accelerator” rather than a “replacement for production systems” is the more sound engineering judgment.
7. Conclusion
Going from a single natural language instruction to a runnable running tracker, the key lies not in the tool itself but in how structured the requirement expression is and how rigorous the validation process is. With clear goals, bounded constraints, defined acceptance criteria, and multiple rounds of iteration plus layered validation, an individual can efficiently ship a small tool and put attention back on what truly matters: exercise and study.
