I imagine that if someone suspected an anonymous online persona of being a specific real person who also had writing samples available online (like a blog or social media) they'd be able to compare the styles of writing. What are some ways to prevent this? Should techniques be done on your anonymous account or your identifiable one?
There is a program written in Java called Anonymouth which assists with this:
Anonymouth is a Java-based application that aims to give users to tools and knowledge needed to begin anonymizing documents they have written. It does this by firing up JStylo libraries (an author detection application also develped by PSAL) to detect stylometric patterns and determine features (like word length, bigrams, trigrams, etc.) that the user should remove/add to help obsure their style and identity.
On its own, Anonymouth is only of limited value. Anonymizing your writeprint analysis requires a basic understanding of linguistics and stylometry. Basic stylometry involves the so-called 5-feature analysis, where five major writing style features are analyzed (paraphrased from Wikipedia):
lexical features - The analysis of the lexicon, the author's choice of vocabulary. Different people use different words at different rates, which can make them quite unique. I, for example, tend to use the word tend a lot. I would need to avoid that if I wanted to hide my writeprint. Using simple, short, and common words can reduce the potential of this feature.
syntactic features - The analysis of the author's writing style and sentence structure, such as: punctuation, use of passive voice, and sentence complexity. Using sentences that are as simple as possible with a standard writing style can help weaken this feature.
structural features - The analysis of the author's organization of the work. These include paragraph length, spacing, indentation, use of oxford commas, etc. Just as with making the 2nd feature less useful, making this feature less useful can be done by following standard writing styles rather than using one that naturally evolved with you.
content-specific features - The analysis of the language that is contextually significant to subject of the written work. Examples include the use of slang or acronyms that may be shibboleths. E.g. a set of botnet owners can easily be divided into those who say "C&C", "CnC", and "C2".
idiosyncratic features - The analysis of errors and other ungrammatical elements that may be unique to the author. This is by far one of the most damning features and has lead to numerous people being deanonymized by their writing style. Small mistakes made on one non-anonymous identity can carry on to anonymous identities, potentially linking them.
Many of these features can be anonymized by using standard English with completely proper grammar and spelling, and short, simple sentences. Idioms and the like should be avoided. It's also possible to emulate other authors in order to fool analysis. If all else fails, simply waiting can help. A person's writing style drifts over the years, so it's unlikely that a document authored by you several years ago will be easy to tie to what you write now. This does not mean it is impossible, just harder.
It would take a lot of writing samples for this, but it is theoretically possible to some degree of certainty (I doubt it would be admissible in court, for example, but they could convince themselves at least). Preventing this would require you to intentionally write completely differently than you normally would (or use a script that makes your writing look different, as @DarkMatter mentioned). Trying to emulate the writing style of an author you like might be one way of manually doing this (it is certainly possible and common for writers to emulate the writing style of H.P. Lovecraft, for example).
You should definitely alter the writing of your anonymous persona since you have undoubtedly been writing since a very early age, thus a lot of data exists tied to your real identity.
A couple of rounds of Google translate seems like a good bet. E.g. plaintext-->chinese-->english-->german-->italian-->English.
You would probably lose a lot of meaning, too, due to imperfect translation at each step, but you could proofread to make sure the essential message is the same.