'Twitter' is the verb (action word) in this sentence - it describes what the swallows are doing (making chirping sounds). 'Swallows' is a noun (the birds - plural of swallow) performing the action, 'eaves' is a noun (the location - roof overhangs), and 'underneath' is a preposition showing position. The sentence describes birds chirping beneath roof edges.