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

Possible extensions of tag-copy patterns #69

Open
mr-martian opened this issue Nov 25, 2020 · 0 comments
Open

Possible extensions of tag-copy patterns #69

mr-martian opened this issue Nov 25, 2020 · 0 comments

Comments

@mr-martian
Copy link
Collaborator

mr-martian commented Nov 25, 2020

55619a0 added the ability to write tag patterns like num: %; for "when outputing num, just use the tl from biltrans".

Some possible useful extensions of this that we should consider implementing:

Copy tl and add a tag at the end:

n: %.number;

Modify a tag within a copied string:

adj: %;
NP -> n adj { 2[number=1.number] _ 1 }
      ! currently 2[number=1.number] and 2 are entirely equivalent here

Apply tag-rewrite rules (might need to be manually specified at output time).

Also, there should probably be an error message if this sort of pattern is used for a chunk.

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

No branches or pull requests

1 participant