Automatic writing style detection and rewriting
Abstract
A data processing system obtains source textual content associated with a first writing style and target textual content associated with a second writing style and provides the source textual content as an input to a first machine learning model which analyzes the source content to determine the first writing style of the first textual content. The system provides an indication of the first writing style and the target textual content as an input to a second machine learning model which analyzes the target textual content and rewrites the target textual content according to the first writing style to output updated target textual content rewritten according to the first writing style. Some implementations utilize a single model trained to receive the source textual content, the target textual content, to determine the writing style of the source textual content and rewrite the target textual content according to the first writing style.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 16 · Forward citations: 1.
Claims (8 — 2 Independent, 6 Dependent)
- Claim 1Independent Claim
A data processing system comprising: a processor; and a machine-readable storage medium storing executable instructions that, when executed, cause the processor to perform operations comprising: obtaining source textual content that is associated with a first writing style; obtaining first target textual content that is associated with a second writing style that is different from the first writing style; providing the source textual content as an input to a first machine learning model trained to determine a writing style of textual content provided as the input; analyzing the source textual content using the first machine learning model to obtain an indication of the writing style of the source textual content; providing the indication of the writing style of the source textual content and the first target textual content as an input to a second machine learning model trained to analyze the first target textual content and to rewrite the first target textual content according to the
- Claim 2Depends on #1
The data processing system of claim 1, wherein the first machine learning model and the second machine learning model are a single machine learning model configured to receive the source textual content and the first target textual content, to determine the writing style of the source textual content, and to rewrite the first target textual content according to the writing style of the source textual content.
- Claim 3Depends on #1
The data processing system of claim 1, wherein the machine-readable storage medium includes instructions configured to cause the processor to perform operations of: receiving a request to store writing style information for a third writing style in a writing style datastore, the writing style information including information that can be used by the second machine learning model to rewrite a respective target textual content according to the third writing style.
- Claim 4Depends on #3
The data processing system of claim 3, wherein the machine-readable storage medium includes instructions configured to cause the processor to perform operations of: receiving a request to apply the third writing style to second target textual content; accessing the writing style information for the third writing style from the writing style datastore; providing the writing style information for the third writing style and the second target textual content as an input to the second machine learning model; and analyzing the writing style information for the third writing style and the second target textual content using the second machine learning model to obtain updated second target textual content that has been rewritten according to the third writing style.
- Claim 5Depends on #1
The data processing system of claim 1, wherein the machine-readable storage medium includes instructions configured to cause the processor to perform operations of: receiving a request to analyze a first document comprising a plurality of paragraphs of textual content from a first remote application; analyzing each paragraph of the first document using the first machine learning model to determine a respective writing style associated with each paragraph; determining whether the first document is associated with a consistent writing style by comparing respective writing styles of the plurality of paragraphs of the textual content; and providing an indication to the first remote application indicating whether the first document is associated with a consistent writing style.
- Claim 6Depends on #1
The data processing system of claim 1, wherein the source textual content and the first target textual content are portions of a same document, and wherein the second machine learning model is configured to update the writing style of all of the same document according to the first writing style.
- Claim 7Depends on #1
The data processing system of claim 1, wherein the first machine learning model, the second machine learning model, or both, are implemented using transformer-like model, GPT3, or InstructGPT.
- Claim 8Independent Claim
A method implemented in a data processing system automatically updating a writing style of textual content, the method comprising: obtaining source textual content that is associated with a first writing style; obtaining first target textual content that is associated with a second writing style that is different from the first writing style; providing the source textual content as an input to a first machine learning model trained to determine a writing style of textual content provided as the input; analyzing the source textual content using the first machine learning model to obtain an indication of the writing style of the source textual content; providing the indication of the writing style of the source textual content and the first target textual content as an input to a second machine learning model trained to analyze the first target textual content and to rewrite the first target textual content according to the writing style represented by the indication that was obtained fr
Technical Overview & Description
BACKGROUND There are numerous writing styles. A writing style is a combination of features of language composition that become characteristic of a particular writer, a particular genre, a particular organization, or a particular profession. The writing style of a particular individual may be distinctive for various reasons, such as but not limited to themes that appear in the individual's writing, personal idiosyncrasies of phrasing and/or idiolect. A writer's style can change depending on the type of writing they are doing, who they are writing for, and their target audience. However, an individual may be proficient in numerous writing styles but rarely, if ever, in all writing styles. Extreme examples of different ‘ writing styles ’ include writing in different languages, or different dialects of a language. But more commonly, style differences involve modification of the tone of the writing. In many instances, a writer may be proficient in one or more writing styles but would like to author a document that has a writing style in which the writer is not proficient. For instance, a screen writer proficient in drafting scripts may struggle with writing a legal document because they are not proficient in legal writing. In other instances, multiple authors may contribute to a document, and each writer may have their own unique writing style. However, the authors prefer that the document to have a single coherent writing style. Currently, the only solution to this problem is for authors to try their best to mimic the writing style of source content, but this approach is typically ineffective. Hence, there is a need for improved systems and methods that provide a technical solution for automated detection of writing style of source content and rewriting text according to the style of the source content. SUMMARY An example data processing system according to the disclosure may include a processor and a machine-readable medium storing executable instructions. The instruct
Cited By — Indexed Forward Citations (1 of 1 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 12,711,166 B2 | Automated content creation for collaboration platforms with platform-specific objects | 2026 | 0 |
References Cited — Backward Prior Art (16)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Nath, Sukanya.
- “
- Style Change Detection
- ”
- Thesis, Department of Computer Science, University of Neuch
- â
- tel, Oct. 2021 (Year: 2021).
- Toshevska et al.
- “
- A Review of Text Style Transfer using Deep Learning