Badinage. This use of the word is extremely rare.

1

1796.  His dirge on the Emperor may be accompanied with a little japanning on Madame La Fayette, for so whimsically choosing to be imprisoned with her husband.—The Aurora, Phila., Aug. 8.

2