Here is a phonological rule:
-ViC(-) > -VCʲ(-),
where i both /i/ or /j/;
and its vice versa:
-VCʲ(-) > -ViC(-).
(I think that -VeC(-) is possible too).
But I don't know what is the name of such rule, maybe it is particular case of the metathesis or the transphonologization.
And I don't remember where I found it. Maybe it was the description of Romanian language, or Hungarian, or whatever else.
So my question is about the term of such process and in which languages it can be observed historically or in loanwords.
There was two responses for clarifying but I don't know how so I can give only examples.
For the phonological rule they are (as pseudowords):
the historical stage in some language:
bein > beny /bɛin > bɛnʲ/;
the adaptation of loanword in some another language:
rarrohaatat' > rerugatajt /rarːoɦaːtatʲ > ɾəɾʊɣatai̯t/.
It seem to be kind of dissimilation in second case:
the /tʲ/ dissimilate into the /i̯t/ sequence;
but I don't understand its regressive character, i.e. why not to the /ti/ (maybe it is the forbidden coda).
Also there are more examples for metathesis:
Eng. foliage > foilage.