We introduce and investigate a new way of generating mildly context-sensiti
ve languages. The main idea is that the contexts are adjoined by shuffling
them on certain trajectories. In this way we obtain also a very general cla
ss of contextual grammars such that most of the fundamental classes of cont
extual grammars, for instance, internal contextual grammars, external conte
xtual grammars, n-contextual grammars, are particular cases of contextual g
rammars with contexts shuffled on trajectories. The approach is very flexib
le, able to model various aspects from linguistics.