[GH-ISSUE #8542] [Feature]: Split a character's description into its fields #8398

Closed
opened 2026-11-07 16:42:43 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Promansis on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8542

Originally assigned to: @Promansis on GitHub.

What problem does this solve?

Many downloaded character cards put everything into the description: personality, appearance, backstory, scenario, instructions and even example dialogue. The Engine has separate fields for each of these, and some features read them separately (the editor tabs, prompt presets that place personality or the scenario elsewhere, agents that look at appearance). A card like this works, but its fields stay empty and the description is one large block that is hard to edit.

Sorting a card by hand means copying text between tabs and risking lost lines. Doing it for a whole library is not realistic.

Proposed solution

Add an optional "Split description into fields" step that sorts a description into the card's existing fields without losing text:

  • A deterministic splitter in packages/shared that recognises the common card layouts: labelled sections (Personality:, [Appearance], Markdown headings), W++ and PList trait lists (with or without brackets, including one-line PLists and {{char}}'s persona prefixes), JSON-style blocks, wrapper tags, {{user}}:/{{char}}: example dialogue and <START> blocks, and interview-style profiles whose questions name a field ("Personality?", "Appearance?").
  • The split is lossless: every line ends up in exactly one field, and a card it cannot sort safely (narrator or multi-character cards, empty descriptions) is left alone unless the user forces it.
  • Offer it in three places: a checkbox in the character import window, a checkbox in the Bot Browser download dialog (characters and personas), and a button in the character editor next to version history that previews the result before applying.
  • Save every split as a new card version, so the original stays one click away in version history.
  • Show a summary after an import with which fields were filled, and warn when unlabelled prose was sorted by its wording rather than by labels, since that guess can be wrong.
  • Let the user ask Professor Mari to review a split from the preview.

Alternatives considered

  • Leave cards as they are. The fields stay empty and the features that read them get nothing.
  • Ask a model to rewrite the card. It costs tokens per card, is not repeatable and can drop or reword the author's text. The deterministic splitter moves text verbatim, and Professor Mari stays available as an optional second opinion.
  • A separate offline script. A normalizer script already exists outside the repository, but users would have to export, run and re-import their cards. Built into the import paths, it works where cards arrive.

Additional context

The splitter was checked against a local library of 564 cards and 182 public Pygmalion cards. It matches the existing normalizer script's output on 558 of the 564 library cards, and the remaining differences are layouts the Engine version handles better. No card lost text in either run.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8542 Originally assigned to: @Promansis on GitHub. ## What problem does this solve? Many downloaded character cards put everything into the description: personality, appearance, backstory, scenario, instructions and even example dialogue. The Engine has separate fields for each of these, and some features read them separately (the editor tabs, prompt presets that place personality or the scenario elsewhere, agents that look at appearance). A card like this works, but its fields stay empty and the description is one large block that is hard to edit. Sorting a card by hand means copying text between tabs and risking lost lines. Doing it for a whole library is not realistic. ## Proposed solution Add an optional "Split description into fields" step that sorts a description into the card's existing fields without losing text: - A deterministic splitter in `packages/shared` that recognises the common card layouts: labelled sections (`Personality:`, `[Appearance]`, Markdown headings), W++ and PList trait lists (with or without brackets, including one-line PLists and `{{char}}'s persona` prefixes), JSON-style blocks, wrapper tags, `{{user}}:`/`{{char}}:` example dialogue and `<START>` blocks, and interview-style profiles whose questions name a field ("Personality?", "Appearance?"). - The split is lossless: every line ends up in exactly one field, and a card it cannot sort safely (narrator or multi-character cards, empty descriptions) is left alone unless the user forces it. - Offer it in three places: a checkbox in the character import window, a checkbox in the Bot Browser download dialog (characters and personas), and a button in the character editor next to version history that previews the result before applying. - Save every split as a new card version, so the original stays one click away in version history. - Show a summary after an import with which fields were filled, and warn when unlabelled prose was sorted by its wording rather than by labels, since that guess can be wrong. - Let the user ask Professor Mari to review a split from the preview. ## Alternatives considered - **Leave cards as they are.** The fields stay empty and the features that read them get nothing. - **Ask a model to rewrite the card.** It costs tokens per card, is not repeatable and can drop or reword the author's text. The deterministic splitter moves text verbatim, and Professor Mari stays available as an optional second opinion. - **A separate offline script.** A normalizer script already exists outside the repository, but users would have to export, run and re-import their cards. Built into the import paths, it works where cards arrive. ## Additional context The splitter was checked against a local library of 564 cards and 182 public Pygmalion cards. It matches the existing normalizer script's output on 558 of the 564 library cards, and the remaining differences are layouts the Engine version handles better. No card lost text in either run. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#8398
No description provided.