ままに details
Examples
just as one is told or urged — the actor goes along without exercising their own judgment
店員に勧められるままに、高いコースを申し込んでしまった。
ten'in ni susumerareru mama ni, takai koosu o moushikonde shimatta.
I went along with what the clerk pushed and signed up for the expensive plan. neutral
言われるままに書類にサインしちゃったんだよね。
iwareru mama ni shorui ni sain shichatta n da yo ne.
I just signed the papers like they told me to. casual
wherever it takes one — following an impulse or a natural flow rather than a plan (気[き]の向[む]くままに)
気の向くままに、知らない町を歩いた。
ki no muku mama ni, shiranai machi o aruita.
I wandered around an unfamiliar town wherever the mood took me. neutral
筆の赴くままに書き綴った随筆でございます。
fude no omomuku mama ni kakitsuzutta zuihitsu de gozaimasu.
These are essays written just as the pen led. formal
Formation
受身の動詞+ままに(言われるままに・勧められるままに)attaches to plain clause思い・心・意+のままに(思いのままに)attaches to noun phrase (schematic)
Notes
A set of instructions with no will behind it takes とおりに instead.
Related patterns
Similar
とおりに says only that the action matched the instruction and is silent about the actor (説明書のとおりに組み立てた); ままに adds that the actor exercised no judgment at all, so it needs a will to surrender to — ×説明書のままに組み立てた has none and fails.
Lookalikes
たまま hangs off the た-form and marks a state nobody undid, against which the main clause happens (窓を開けたまま出かけた); ままに hangs off the dictionary form and marks a will the actor keeps following, judgment suspended (言われるままに署名した) — the た crossover exists but shifts the claim, 言われたままに書く being one instruction reproduced faithfully rather than a running surrender.