spikedee / phonix

Automatically exported from code.google.com/p/phonix
Other
0 stars 0 forks source link

Node features in a rule action #63

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, could you implement using Node features in rules' action sequences?  It's 
not possible now but it would greatly improve user experience. For example I 
have a code:

feature nasal
feature flap
feature approximant
feature trill
feature sonorant (type=node children=nasal,flap,approximant,trill

If I want to change all syllabic sonorants to plain sonorants I'd like to be 
able to write [+sonorant +syllabic] => [+sonorant -syllabic]. Now I have to 
write this down for every child. I don't know if this is an issue or I'm doing 
something wrong, but I thought it would be best if I wrote it here.

Original issue reported on code.google.com by krzyszto...@gmail.com on 27 Jul 2012 at 5:52

GoogleCodeExporter commented 8 years ago
Good news: this already exists! The only problem is that Node features don't 
use the binary notation (+/-), but the unary notation for "present/absent". 
What this means is your rule should have:

[sonorant +syllabic] => [-syllabic]

Which will do exactly what you requested above.

Original comment by jas...@gmail.com on 14 Oct 2012 at 12:20

GoogleCodeExporter commented 8 years ago
Oh, that is great, thanks!

Original comment by krzyszto...@gmail.com on 14 Oct 2012 at 9:57