Diplomatics is a discipline which is concerned with the analysis of historical documents. The word goes back to "diploma", which literally means folded (document). Using the term diplomatics for this science is probably due to a work called "De re diplomatica", by Jean Mabilon (1632-1707). Note also, that the term is unrelated to diplomacy. 