Noun
(music) A rule that modifies a well-formed structure (in limited ways).
(grammar) A rule that takes an input and changes it in some restricted way to result in a surface structure.