I rant and rave perhaps when giving an account (9)
I believe the answer is:
narrative
'giving an account' is the definition.
'narrative' can be an answer for 'account' (narrative is a kind of account). I'm unsure of the 'giving an' bit.
'i rant and rave perhaps' is the wordplay.
'and' means one lot of letters go next to another.
'perhaps' indicates anagramming the letters.
'i'+'rant'+'rave'='irantrave'
'irantrave' anagrammed gives 'NARRATIVE'.
'when' acts as a link.
Can you help me to learn more?
(Other definitions for narrative that I've seen before include "Storyline" , "Chronicle" , "Popeye's vegetable" , "Account of connected events, a story" , "Story line" .)