Explanation
Express doing something as instructed or describing how something matches a rule or guideline; 'as', 'according to'.
Formation
Verb-casual + とおり, い-Adjective + とおり, な-Adjective + だとおり, Noun + だとおり
Detailed explanation
The ~とおり grammar point is used to express doing something exactly as instructed or describing how something matches a guideline or is exactly as one heard/expected. It can be translated as 'as', 'according to', or 'the same way...'.
Examples
Sensei ga itta tōri ni shukudai o shimashita.
I did my homework exactly as the teacher said.
Kono chizu no tōri ni aruite kudasai.
Please walk according to this map.
Kare wa itsumo rūru-dōri ni asobimasu.
He always plays by the rules.
Sono dōro wa hiruma to onaji kurai yoru mo nigiyaka da to iu tōri deshita.
As I heard, that street was just as lively at night as it is in the daytime.
Practice
Grammar content sourced from hanabira.org.