Catalyzes the attachment of tryptophan to tRNA(Trp). ATP + L-tryptophan + tRNA(Trp) = AMP + diphosphate + H(+) + L-tryptophanyl-tRNA(Trp) Complex locus in which transcription results in the production of one large primary transcript that gives rise to two functionally distinct proteins, wars-2 and prx-10. Belongs to the class-I aminoacyl-tRNA synthetase family.