WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Add date calculation ability #55

@jmarx

Description

@jmarx

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
No labels

Projects

Status

Needs review

Relationships

None yet

Development

No branches or pull requests

Issue actions