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

Regex behavior in Falko metadata is incorrect #31

Closed
thomaskrause opened this issue Aug 17, 2012 · 0 comments
Closed

Regex behavior in Falko metadata is incorrect #31

thomaskrause opened this issue Aug 17, 2012 · 0 comments
Labels
Milestone

Comments

@thomaskrause
Copy link
Member

When searching for regex in annotations, it is assumed the user means an initially and finally anchored string, i.e. the query

tok=/[Uu]nd/

is actually looking for the expression /^[Uu]nd$/. As a consequence, this query does not find "Hund". This is correct.

In metadata, this does not happen correctly. Looking in FalkoEssaysL2, this query:

tok & meta::l1_1=/[^e].+/

finds texts with l1_1="eng", because "eng" contains [^e].+ as a substring: the "ng" part. This query should also be treated as looking for l1_1=/^[^e].+$/, so that metadata and annotations behave in the same way.


Imported from Launchpad using lp2gh.

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

No branches or pull requests

1 participant