-
Notifications
You must be signed in to change notification settings - Fork 28
Milestone
Description
Summary
Add a calculate-dates ability to the WordPress AI Experiments plugin to help AI assistants accurately calculate recurring dates from natural language patterns.
Problem
AI models struggle with date calculations, especially recurring patterns like "3rd Tuesday of each month" or "every other Friday". This leads to incorrect date calculations when creating events, appointments, or any time-based content.
Proposed Solution
Create a calculate-dates ability that can parse natural language date patterns and return accurate dates. This would be useful for any WordPress plugin or application that needs AI-powered date calculation.
Supported Patterns
- Nth weekday patterns: "3rd Tuesday", "first Friday", "last Monday"
- Recurring patterns: "every Monday", "every other Tuesday"
- Relative patterns: "next Thursday", "tomorrow", "in 3 days"
- Interval patterns: "every 2 weeks", "every month"
- Complex patterns: "3 weeks from Friday"
Benefits
- Improves AI accuracy for date-related tasks
- Reusable across different WordPress applications
- Handles edge cases like leap years and month-end dates
- Provides consistent date calculation logic
Implementation
- Add as a feature to the AI Experiments plugin
- Support graceful degradation for plugins that want to use their own implementation
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Needs review