The word "阿谁" is formed by attaching the prefix "阿" to the interrogative character "谁" (who), creating a compound interrogative pronoun that functions identically to "谁" but with an archaic or dialectal tone.