1. Identify the relative noun: «الَّذِي / الَّتِي / مَنْ / مَا ...».
2. Delimit the ṣilah: identify the full declarative clause.
3. Find the ʿāʾid: overt, implicit, or legitimately omitted.
Only then assign the relative noun its external nominative, accusative or genitive position.