It's definitely possible with ePub3 readers that allow access to
Local Storage via JavaScript, for example, the iPad and other iDevices.
Here's a
link to an older video by French publisher Walrus studios that shows how user input is used to manipulate text.