Sentence:  In his political testament , `` Advice to My Country '' , <WSD>penned</WSD> just before his death , Madison expressed the wish `` that the Union of the States be cherished and perpetuated . 
Meaning of the word marked with <WSD> tags:  produce a literary work