Title: [FR - DateTime] side effect with sets · Issue #3200 · microsoft/Recognizers-Text · GitHub
Open Graph Title: [FR - DateTime] side effect with sets · Issue #3200 · microsoft/Recognizers-Text
X Title: [FR - DateTime] side effect with sets · Issue #3200 · microsoft/Recognizers-Text
Description: Describe the bug A set detected has effect on a previously found date in French. To Reproduce let resolutions = DateTimeRecognizers.recognizeDateTime('Le jeudi 25 septembre 2025 ', Recognizers.Culture.French); /* {..."text": "jeudi 25 se...
Open Graph Description: Describe the bug A set detected has effect on a previously found date in French. To Reproduce let resolutions = DateTimeRecognizers.recognizeDateTime('Le jeudi 25 septembre 2025 ', Recognizers.Cult...
X Description: Describe the bug A set detected has effect on a previously found date in French. To Reproduce let resolutions = DateTimeRecognizers.recognizeDateTime('Le jeudi 25 septembre 2025 ', Recogniz...
Opengraph URL: https://github.com/microsoft/Recognizers-Text/issues/3200
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[FR - DateTime] side effect with sets","articleBody":"**Describe the bug**\nA set detected has effect on a previously found date in French.\n\n**To Reproduce**\n```js\nlet resolutions = DateTimeRecognizers.recognizeDateTime('Le jeudi 25 septembre 2025 ', Recognizers.Culture.French);\n /*\n {...\"text\": \"jeudi 25 septembre 2025\", \"typeName\": \"datetimeV2.date\" }\n =\u003e This is great !\n */\n resolutions = DateTimeRecognizers.recognizeDateTime(`Le jeudi 25 septembre 2025 blablabla.Ensuite : tous les jeudis à 20h15.`, Recognizers.Culture.French);\n /*\n [\n {... \"text\": \"jeudi 25 septembre 2025 \",\"typeName\": \"datetimeV2.set\"},\n {... \"text\": \"tous les jeudis à 20h15\", \"typeName\": \"datetimeV2.set\"}\n ]\n =\u003e The first resolution should not be a 'set' but a 'date'\n */\n\n /*\n =\u003e let's try in english\n */ \n resolutions = DateTimeRecognizers.recognizeDateTime('on thursday, 25 of September', Recognizers.Culture.English);\n /*\n {... \"text\": \"thursday, 25 of september\", \"typeName\": \"datetimeV2.date\"}\n =\u003e This is great !\n */\n\n resolutions = DateTimeRecognizers.recognizeDateTime(`on thursday, 25 of September on every mondays`, Recognizers.Culture.English);\n /*\n [\n {... \"text\": \"thursday, 25 of september\", \"typeName\": \"datetimeV2.date\" },\n {... \"text\": \"every mondays\", \"typeName\": \"datetimeV2.set\" }\n ]\n =\u003e This is great too !\n */\n```\n\n**Expected behavior**\nthe first resolution ('Le jeudi 25 septembre 2025') should keep the datetimeV2.date type as in English whatever the following text.\n\n\n**Platform**\n - Platform: JavaScript\n - Environment: npm package\n - Version of package 1.3.2\n","author":{"url":"https://github.com/mmouterde","@type":"Person","name":"mmouterde"},"datePublished":"2025-09-23T14:26:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/3200/Recognizers-Text/issues/3200"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:13cde958-ae61-77ac-f5ab-9306affe560d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D474:1C3AE2:1BCB95B:25A64AF:6A65415C |
| html-safe-nonce | b28cba1bcb75d87b9e7421c241c4f4312d6cfc6d367c435a080ec4ad71204bae |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDc0OjFDM0FFMjoxQkNCOTVCOjI1QTY0QUY6NkE2NTQxNUMiLCJ2aXNpdG9yX2lkIjoiNzkyMzYxNDExMDUxMjkyMjk3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e2cb339cbba02066f729c8cefd219af2e478152109e1762ed71e3f77a66ad9ca |
| hovercard-subject-tag | issue:3445528788 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/Recognizers-Text/3200/issue_layout |
| twitter:image | https://opengraph.githubassets.com/20cf1b98cbb1112b0150c8cef8c3b8acd953cf71574d9999145e66b98c51cbc0/microsoft/Recognizers-Text/issues/3200 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/20cf1b98cbb1112b0150c8cef8c3b8acd953cf71574d9999145e66b98c51cbc0/microsoft/Recognizers-Text/issues/3200 |
| og:image:alt | Describe the bug A set detected has effect on a previously found date in French. To Reproduce let resolutions = DateTimeRecognizers.recognizeDateTime('Le jeudi 25 septembre 2025 ', Recognizers.Cult... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mmouterde |
| hostname | github.com |
| expected-hostname | github.com |
| None | 52c76df668885aaff23b50bdca1fa1ea44ac9c1553e888ebc70ff1e4daa4625b |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/Recognizers-Text git https://github.com/microsoft/Recognizers-Text.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 88544417 |
| octolytics-dimension-repository_nwo | microsoft/Recognizers-Text |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 88544417 |
| octolytics-dimension-repository_network_root_nwo | microsoft/Recognizers-Text |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 309153364422b3c499922d1a2a6404910a58ed8e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width