Skip to content

apply ISO interval notation to spec prose - #240

Open
Tariolle wants to merge 2 commits into
doclang-project:mainfrom
Tariolle:iso-142-intervals-units
Open

Tariolle wants to merge 2 commits into
doclang-project:mainfrom
Tariolle:iso-142-intervals-units

Conversation

@Tariolle

@Tariolle Tariolle commented Nov 18, 2026 •

Copy link
Copy Markdown

Part of #146, closes #142.

Writes the topic score range 0<=Scores<=1 as an interval, "in [0, 1]", per ISO/IEC Directives, Part 2:2021, 9.4.1, consistent with the language score. Also replaces the undefined Scores with the score attribute (as used in the topic examples) and fixes "preferrably".

This is the only prose occurrence that needed a change: the prose has no values with unit symbols, and the other ranges are already in ISO notation, generated (Annex A), in code or examples, or not quantity values. I left X >= 1 (versioning clause) and the field cardinalities 0-1 / 0..1 as they are, but can change them if wanted.

closes doclang-project#142)

Write the classifier score range of the `topic` metadata element as the
interval [0, 1] instead of "0<=Scores<=1", per ISO/IEC Directives,
Part 2:2021, 9.4.1.

No other prose occurrence needs a change: the prose contains no values
with unit symbols, and the remaining ranges are either already in ISO
notation, in generated Annex A, in code or examples, or not quantity
values.

Signed-off-by: Florent <florent.tariolle@gmail.com>
@Tariolle
Tariolle marked this pull request as ready for review November 18, 2026 21:49
@lehors

lehors commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Thanks for this contribution. I agree with the way of representing the range, however I'm not sure about using the ∈ sign. It's not that it's incorrect, but it's not used anywhere else in the spec at this point. Currently the spec instead simply uses "in" or "within".

I don't know whether @vagenas or @PeterStaar-IBM have a preference over this but I think we should be consistent.

So, I would suggest sticking to the current way it's done for this PR and then submit another PR which addresses all the occurrences where the ∈ sign should be used if there is agreement that's the way we want to go.

Write the range as "in [0, 1]" instead of "∈ [0, 1]", consistent with
the `language` score and the rest of the spec, which use "in" or
"within" rather than the ∈ sign.

Also replace the undefined "Scores" with the `score` attribute (as used
in the `topic` examples) and fix "preferrably".

Signed-off-by: Florent <florent.tariolle@gmail.com>
@Tariolle

Copy link
Copy Markdown
Author

Thanks for this contribution. I agree with the way of representing the range, however I'm not sure about using the ∈ sign. It's not that it's incorrect, but it's not used anywhere else in the spec at this point. Currently the spec instead simply uses "in" or "within".

I don't know whether @vagenas or @PeterStaar-IBM have a preference over this but I think we should be consistent.

So, I would suggest sticking to the current way it's done for this PR and then submit another PR which addresses all the occurrences where the ∈ sign should be used if there is agreement that's the way we want to go.

Thanks, switched to "in [0, 1]" to match the language score (a012c9b). I also replaced the undefined Scores with score and fixed "preferrably". Side note: the topic examples use topic_taxonomy, which the prose never mentions, but no classifier. Should topic have a classifier attribute like language? I can open an issue.

@lehors lehors left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Thanks!

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.

Mathematical Interval & Unit Formatting

2 participants