noun, feminine
S. M. is feminine in French.
initialism of Sa Majesté (“His Majesty or Her Majesty”); initialism of Scientiæ Magister, an academic degree offered by Harvard University and MIT. These degree abbreviations appear to be backwards because they follow the tradition of Latin degree names