Literally 'to fill in (
填) words (
词)'. Originates from Tang/Song-dynasty
词 poetry: poets wrote new lyrics to existing tune patterns (
词牌), filling in the prescribed tonal and syllabic slots — much like writing English lyrics to a known melody. The verb survives in modern Chinese songwriting.