Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use grimoire as a data source #1

Open
oganm opened this issue Jun 23, 2017 · 1 comment
Open

Use grimoire as a data source #1

oganm opened this issue Jun 23, 2017 · 1 comment

Comments

@oganm
Copy link

oganm commented Jun 23, 2017

I believe you are adding spells by reading them one by one from the book but you might have an easier time parsing markdown files created for https://github.com/thebombzen/grimoire. They are consistent enough to be parsed and complete as far as I know. So you can just add everything en masse. Checking the results to see if they are correct should be easier than adding things one by one.

Here's my pipeline for parsing them
https://github.com/oganm/wizaRd/blob/master/process/process.R

And here's a json that comes out of it. It only doesn't have material components I believe I take all the text instead of just clipping description but with some modification you should be able to make a better one.
https://github.com/oganm/wizaRd/blob/master/data-raw/spells.json

@mattearly
Copy link
Owner

I will probably do that, figuring it out that way should take a lot less time for me.

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

No branches or pull requests

2 participants