Clarify what type of autocomplete you're building.
Functional requirements:
- Show suggestions as user types
- Highlight matching text in suggestions
- Select via click or keyboard
- Submit selected suggestion
- Show recent searches (optional)
Non-functional requirements:
- Response within ms of typing
- Handle + suggestions efficiently
- Work across devices
- Accessible via keyboard and screen reader
Scope questions: Server-side or client-side filtering? How many suggestions to show (? ?)?