The word "头虱" is formed by combining the character "头" (tóu), meaning "head", with the character "虱" (shī), meaning "louse", creating a compound where "头" modifies "虱" to specify a louse that infests the head.