( ( ( ( ( ( ( ( ( The diffraction ) ( grating sorts ) ) ( light ( by frequency ) ) ) , ) ( with ( ( violet light ) ( -LRB- ( ( ( the ( highest frequency ) ) ( of ( visible light ) ) ) -RRB- ) ) ) ) ) ( at ( one end ) ) ) ( of ( ( the ( spectrum ( and ( red light ) ) ) ) ( -LRB- ( ( ( the ( lowest frequency ) ) ( of ( visible light ) ) ) -RRB- ) ) ) ) ) ( at ( the other ) ) ) . )
(ROOT (NP (NP (NP (DT The) (NN diffraction)) (VP (VBG grating) (NP (NNS sorts)))) (ADJP (JJ light) (PP (IN by) (NP (NN frequency)))) (, ,) (PP (IN with) (NP (NP (NN violet) (NN light)) (PRN (-LRB- -LRB-) (NP (NP (DT the) (JJS highest) (NN frequency)) (PP (IN of) (NP (JJ visible) (NN light)))) (-RRB- -RRB-)))) (PP (IN at) (NP (CD one) (NN end))) (PP (IN of) (NP (NP (DT the) (NN spectrum) (CC and) (JJ red) (NN light)) (PRN (-LRB- -LRB-) (NP (NP (DT the) (JJS lowest) (NN frequency)) (PP (IN of) (NP (JJ visible) (NN light)))) (-RRB- -RRB-)))) (PP (IN at) (NP (DT the) (JJ other))) (. .)))
The diffraction grating sorts light by frequency, with violet light (the highest frequency of visible light) at one end of the spectrum and red light (the lowest frequency of visible light) at the other.
(ROOT (S (NP (NN Violet) (CC and) (NN red)) (VP (VBP are) (NP (NP (CD two) (NNS types)) (PP (IN of) (NP (JJ visible) (NN light))))) (. .)))