@@ -153,7 +153,7 @@ trente-et-un,
153
153
=>SetEntityFeature(right,"numday")
154
154
=>NormalizeEntity()
155
155
=<ClearEntityFeatures()
156
- =>NormalizeRelativeDate ()
156
+ =>NormalizeDate ()
157
157
158
158
# lundi après-midi, lundi dernier
159
159
@dayNoAbbrev::(dernier|@daytime)?:DATE:
@@ -235,21 +235,29 @@ trente-et-un,
235
235
=<ClearEntityFeatures()
236
236
=>NormalizeDate()
237
237
238
- # ignore relative for the moment
239
- &@month:(@numday|t_integer>1<31)?:(dernier|suivant)?:DATE:
238
+ &@month:(@numday|t_integer>1<31)?:dernier:DATE:
240
239
=>SetEntityFeature(trigger,"month")
241
240
=>SetEntityFeature(left,"numday")
241
+ =>SetEntityFeature(right.1,"datemod")
242
242
=>NormalizeEntity()
243
243
=<ClearEntityFeatures()
244
- =>NormalizeDate ()
244
+ =>NormalizeRelativeDate ()
245
245
246
- &@month::prochain:DATE:
246
+ &@month:(@numday|t_integer>1<31)? :prochain:DATE:
247
247
=>SetEntityFeature(trigger,"month")
248
+ =>SetEntityFeature(left,"numday")
248
249
=>SetEntityFeature(right.1,"datemod")
249
250
=>NormalizeEntity()
250
251
=<ClearEntityFeatures()
251
252
=>NormalizeRelativeDate("next_month")
252
253
254
+ &@month:(@numday|t_integer>1<31)?::DATE:
255
+ =>SetEntityFeature(trigger,"month")
256
+ =>SetEntityFeature(left,"numday")
257
+ =>NormalizeEntity()
258
+ =<ClearEntityFeatures()
259
+ =>NormalizeDate()
260
+
253
261
# fin 2003
254
262
255
263
@numyear4:@modifierDate::DATE:
@@ -329,18 +337,18 @@ siècle$NC:<NUMBER>::DATE:
329
337
=>SetEntityFeature(trigger,"month")
330
338
=>NormalizeEntity()
331
339
=<ClearEntityFeatures()
332
- =>NormalizeRelativeDate ()
340
+ =>NormalizeDate ()
333
341
334
342
#------------------------------
335
343
# informal dates (to normalize, indicate the difference from the reference)
336
- #aujourd\'::hui :DATE:
344
+ #aujourd\'hui:: :DATE:
337
345
#=>NormalizeRelativeDate("diff_0")
338
346
339
347
#GC20130730: aujourd\'hui as dates are given category NC while they should remain adverbs.
340
348
# Should find a solution: specific EN type, ?
341
349
342
- # aujourd\'hui:::DATE:
343
- # =>NormalizeRelativeDate("date_document,diff_0d")
350
+ aujourd\'hui:::DATE:
351
+ =>NormalizeRelativeDate("date_document,diff_0d")
344
352
345
353
## ce matin, ce soir etc.
346
354
#@daytime:(ce|cet)::DATE:
0 commit comments