Writing a paper would be an enormous pain. Typing text is fine, but editing is frustrating. Selecting text with your finger is imprecise, pasting is finicky, and jumping around a document quickly is pretty tough.
But now that I think about it, if you actually have a keyboard attached to the device this is a solved problem. Just port emacs or vi.