Skip to content

Better quote splitting when first sentence is >240 characters #15

@ndrezn

Description

@ndrezn

Right now, captions are generated by concatanating sentences until the 240 character limit is reached. This works fine, but occassionally the first sentence is >240 characters and there's no prose attached to the tweet. In this circumstance, the caption should be tokenized by word rather than character and split in the middle of the sentence, with the rest of the sentence added to the reply caption. See https://en.wikipedia.org/wiki/Template:POTD/2022-09-26 for an example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions