move text methods to a trait + fix doc inclusion