Skip to content

add surface-level style bank - #51

Open
AnnaWegmann wants to merge 1 commit into
24-stylebank-uncommon-docsfrom
24-surface-styles
Open

add surface-level style bank#51
AnnaWegmann wants to merge 1 commit into
24-stylebank-uncommon-docsfrom
24-surface-styles

Conversation

@AnnaWegmann

Copy link
Copy Markdown
Owner

Stacked on #49 (the diff shown is relative to it).

Adds six surface-level styles: all_caps, lowercase, no_punctuation, exclamations, passive_voice, texting_abbreviations. Each is defined by example texts, like every other style. The examples live in a new file, diversify_text/styles/surfacebank.json (flat name → examples, no taxonomy), and are exported as SURFACE_STYLE_BANK.

They are selected by name, e.g. styles=["all_caps", "passive_voice"], and work like the unusual styles: no index, never picked by n. The zero-shot method does not get them (its styles are instructions, not example texts — and its own bank already has caps and lowercase).

The example texts are hand-written. If you would rather have examples derived from the old style bank's texts (the dict deleted in #48), that is a content swap in the JSON with nothing else changing.

Written by Claude and Anna

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 13, 2026 14:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants