Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task/fr new spec dt #191

Merged
merged 112 commits into from
Sep 2, 2019
Merged

Conversation

JohannaSimoens
Copy link
Contributor

@JohannaSimoens JohannaSimoens commented Jul 30, 2019

Improve coverage for French (new datetime subtypes)

Split file rules.rs in separate files per entity type (like in En)
Add moment and values utils to improve grammar (helpers)
Fixes related to subtypes date time (les n prochains mois/jours)

Add support for:

  • quantifier 'quelques'
  • de 'maintenant' à time-of-day (interval) , de time-of-day à 'maintenant' (interval)
  • time-of-day (pile| exactement|précise)
  • 'en ce moment'
  • au (prochain|dernier) date
  • 'saint-sylvestre'
  • cycle 'trimestre'
  • (beginning|middle|end) of season
  • middle of the night
  • sunrise, sunset
  • from <meal|part-of-day|time-of-day> to <meal|part-of-day|time-of-day>
  • depuis +
  • prep + datetime enlarged
  • (end|beginning) of this year
  • approximation: vers time-of-day

Improve coverage test metric

Coverage test success rate: Before 59% -> Now 75%
(Taking into account failed case that are false negatives (real ambiguity cases like "demain à 5h" -> 5h | 17h, or interpretation of ranges for parts of day that need to be set : Before 65% -> Now 81%)

NB: Branch derived from branch 'task/datime-fr-new-specs' which is itself derived from branch 'feature/datetime_­subtypes' + is rebased onto 'task/split-grammar-files-entities-fr' (branch derived from develop (release 19.0) with rules files split per entity)

RosaSternSonos and others added 30 commits June 9, 2019 16:02
…y> to support 'entre 4H et le dîner' for example.
@@ -1266,6 +1266,7 @@ pub fn rules_datetime_with_duration(b: &mut RuleSetBuilder<Dimension>) -> Rustli

}

// FIXME: rename "rules_datetime_with_cycle"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there anything blocking here?

grammar/fr/src/rules_amount.rs Show resolved Hide resolved
@adrienball
Copy link
Collaborator

adrienball commented Jul 31, 2019 via email

@adrienball adrienball merged commit 6225659 into develop Sep 2, 2019
@adrienball adrienball deleted the task/fr-new-spec-dt-enhancement-rebase branch September 2, 2019 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants