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

reduplication restriction #61

Open
GoogleCodeExporter opened this issue Nov 11, 2015 · 0 comments
Open

reduplication restriction #61

GoogleCodeExporter opened this issue Nov 11, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

how to give restriction on reduplication using function _eq, if there's no 
character to reduplicate, so it will return 0.

for example, i have word "eat" and "sleep". i expect the output only 
"sleep-sleep", and no output from "eat".

here's my code

define lexicon {eat}|{sleep};
define temp Cons [Vow|Cons]* -> %< ... %> || .#. _ .#. ;
define pref [..] -> %< Cons [Vow|Cons]* %> %-|| .#. _ %< ;
define RemoveBrackets %<|%> -> 0;

define preRedup lexicon .o. temp .o. pref ;
regex _eq(preRedup, %<, %>) .o. RemoveBrackets;

Original issue reported on code.google.com by reuel.in...@gmail.com on 21 Apr 2015 at 8:45

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

1 participant