Jim Carrey is returning to what he does best - comedy.

The actor, whose latest film, thriller The Number 23, had disappointing reviews, is to star in comedy Me Time as a novelist.

The film centres on Carrey's writer character who is researching his great-great-grandmother's life as a frontier woman.

But when his pregnant wife is ordered to have total bedrest, Carrey's character has to take over the running of the house, and finds himself controlled by his ancestor's diary, in which she describes the challenges of raising a family, ploughing fields and taming the wilderness.

Sounds like domestic bliss meets American history lesson.

Meanwhile, another Carrey project, Ripley's Believe It Or Not! that was abandoned last year after budget worries, is back on track with Tim Burton set to direct once he finishes work on current project Sweeney Todd.