Pepys did not plan on his contemporaries ever seeing his diary, which is evident from the fact that he wrote in shorthand and sometimes in a "code" of various Spanish, French, and Italian words (especially when describing his illicit affairs). However, Pepys often juxtaposed profanities in his native English amidst his "code" of foreign words, a practice which would reveal the details to any casual reader. He did intend future generations to see the diary, as evidenced by its inclusion in his library and its catalogue before his death along with the shorthand guide he used and the elaborate planning by which he ensured his library survived intact after his death.