Skip to content

[FR] Add total mentions per chapter #6

@njncalub

Description

@njncalub

Description

For each [Bracket Content], add how many times it was mentioned in a chapter, and how many times in total it was mentioned in the selected range.

chrome_r8ITT8pldu

Motivation

It will be better for statistical purposes.

Suggested Implementation

Update the chapter parser to tally the contents, then add it to the yaml file.

Currently, we can add the total to the text itself. Just add an unused token as a separator. For example <text>|<count>:

- id: "twiwnch0002011"
  mentions:
    - "[Innkeeper Class Obtained!]|1"
- id: "twiwnch0003026"
  mentions:
    - "[Gambler]|10"

On our neo4j updater, parse the count and put it as a property in the MENTIONED_IN relationship.

Alternate Implementations

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue:enhancementsuggest a new featurescope:bracketsthings related to bracket contentstype:dataupdates to the data files

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions