Published package / CLIR

eu.toy_safety

v0.1.0

Directive 2009/48/EC of the European Parliament and of the Council on the safety of toys

A package can be printed as a standalone module in a general-purpose language that answers without the rules engine: an answer and its status, with no proof, hashes or canonical document. Everything on this page comes from the generation plan built with the index; the gallery computes nothing of its own.

Generation plan

The plan builds: the package can be printed as a module.

plan format
law-backend-plan/0.8
capabilities
status:not_known

Checked against package scenarios

Not checked: the package scenarios have not been run against generated modules. A plan that builds does not yet show that the answers coincide.

Target languages

print this plangopyts

refuse this plan · 13
  • bsl версия плана не поддержана эмиттером: 'law-backend-plan/0.8' (поддержана law-backend-plan/0.7)RU
  • cs версия плана не поддержана эмиттером: 'law-backend-plan/0.8' (поддержана law-backend-plan/0.7)RU
  • dart версия плана не поддержана эмиттером: 'law-backend-plan/0.8' (поддержана law-backend-plan/0.7)RU
  • erl версия плана не поддержана эмиттером: 'law-backend-plan/0.8' (поддержана law-backend-plan/0.7)RU
  • ex версия плана не поддержана эмиттером: 'law-backend-plan/0.8' (поддержана law-backend-plan/0.7)RU
  • java версия плана не поддержана эмиттером: 'law-backend-plan/0.8' (поддержана law-backend-plan/0.7)RU
  • kt версия плана не поддержана эмиттером: 'law-backend-plan/0.8' (поддержана law-backend-plan/0.7)RU
  • lua версия плана не поддержана эмиттером: 'law-backend-plan/0.8' (поддержана law-backend-plan/0.7)RU
  • php версия плана не поддержана эмиттером: 'law-backend-plan/0.8' (поддержана law-backend-plan/0.7)RU
  • rb версия плана не поддержана эмиттером: 'law-backend-plan/0.8' (поддержана law-backend-plan/0.7)RU
  • rs версия плана не поддержана эмиттером: 'law-backend-plan/0.8' (поддержана law-backend-plan/0.7)RU
  • scala версия плана не поддержана эмиттером: 'law-backend-plan/0.8' (поддержана law-backend-plan/0.7)RU
  • swift версия плана не поддержана эмиттером: 'law-backend-plan/0.8' (поддержана law-backend-plan/0.7)RU

Print the module from a repository checkout

./law dev backend corpus/clir/eu-toy-safety.lawir.json --target ts --target py --target go --out DIR

Module interface

Questions are public relations with a producing rule; inputs are the facts a question reads. Function names follow the language: ask_… in Python, ask.… in TypeScript, Ask… in Go.

Questions · 10

NameParametersMeaningReadsSources
category_headingenum, textAnnex V, Part B. The heading of the point that lists this category, as printedno inputs
decides_the_purchasetextArticle 11(2), third subparagraph. A warning which determines the decision to purchase — minimum and maximum ages among themno inputsarticle/11
not_visible_before_purchasetext, textArticle 11(2). A warning which determines the decision to purchase is not visible before the purchase — a breach, not a property of the sales channeltoy_in_categoryvisible_before_purchasewarning_conflicts_with_intended_usearticle/11
prescribed_warningenum, textAnnex V, Part B. The warning the toy shall bear, worded exactly as the Annex words it (Article 11(1))no inputs
warning_age_specified_by_manufacturerenumAnnex V, Part B, footnote. The age in the prescribed warning is left blank and is to be specified by the manufacturerno inputs
warning_missingtext, textArticle 11(1). The warning is required for this toy but is not borne by ittoy_bears_warningtoy_in_categorywarning_conflicts_with_intended_usearticle/11
warning_must_not_be_bornetext, textArticle 11(1), third subparagraph. The toy shall NOT bear that warning: it conflicts with the intended use of the toywarning_conflicts_with_intended_usearticle/11
warning_requiredtext, textArticle 11(1). The toy shall bear that warning, worded exactly as Annex V words ittoy_in_categorywarning_conflicts_with_intended_usearticle/11
warning_unlawfully_bornetext, textArticle 11(1). The toy bears a warning it shall not bear — the manufacturer may not cover a design mismatch with a warningtoy_bears_warningwarning_conflicts_with_intended_usearticle/11
warnings_prefixed_bytextArticle 11(2), second subparagraph. The warnings shall be preceded by the words ‘Warning’ or ‘Warnings’no inputs

Inputs · 4

NameParametersMeaning
toy_bears_warningtext, textArticle 11(2). The warning is marked on the toy, on an affixed label, on the packaging or in the instructions
toy_in_categorytext, enumArticle 11(1). The toy belongs to that category of Part B of Annex V
visible_before_purchasetext, textArticle 11(2). The warning appears on the consumer packaging or is otherwise clearly visible to the consumer before the purchase, including on-line
warning_conflicts_with_intended_usetext, enumArticle 11(1), third subparagraph. The warning of that category conflicts with the intended use of this toy, as determined by its function, dimension and characteristics