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

Add rule for Roman Numbers #3

Open
kosloot opened this issue Dec 23, 2016 · 2 comments
Open

Add rule for Roman Numbers #3

kosloot opened this issue Dec 23, 2016 · 2 comments
Assignees

Comments

@kosloot
Copy link
Contributor

kosloot commented Dec 23, 2016

It would be nice to have Roman Numbers detected.

The regexp may look like this:
^M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})$

see: Here

@kosloot
Copy link
Contributor Author

kosloot commented Oct 24, 2017

A first test reveals some difficulties.
Ucto has explicit shortcuts for 1-letter words. So I, V X etc. are NOT detected.
Adding such a ROMAN-NUMBERS rule needs reprogramming and thinking. And will slow ucto down a bit.

@kosloot
Copy link
Contributor Author

kosloot commented Oct 24, 2018

On the other hand... I V and X are ambiguous anyway. So labeling them as ROMAN-NUMBER is probably never a good idea? Or just add this rule, and accept that 1-letter numbers are labelled as WORD?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants