It's been fun designing a context-free grammar for workout training programs and tracking those programs with results. I've been picking up how the Extended Backus–Naur form is used to accomplish this to aid in parsing the language.

#LanguageDesign #ENBF #ContextFreeGrammar #FormalSpecification

We start a new month with a post, this time does have some code, and it's for my D&D campaign, maybe you want to learn about formal grammar and how name generation works. Enjoy the post!

https://jeferson.me/blog/2025/07/01/context-free-grammar/

#TypeScript #ContextFreeGrammar #Grammar #NameGeneration #DnD #DungeonAndDragons

Context Free Grammar

How to use a context-free grammar engine to generate fantasy names, from simple vowel/consonant patterns to Elven, Dwarven, and monster names.

A corpus analysis of rock harmony

The researchers in this study conducted a corpus analysis of rock harmony by using Rolling Stone magazine's list of the '500 Greatest Songs of All Time'. The corpus consisted of 100 songs, which were chosen by taking the top 20 ranked songs from each decade from the 1950s to the 1990s. The authors personally analyzed all 100 songs using conventional Roman numeral symbols, and their agreement between the two sets of analyzes was over 90%. The analyses were then encoded using a recursive notation similar to a context-free grammar, allowing for concise encoding of repeating sections. Statistical analyses were then conducted on the aggregate data, examining the frequency of different chords and chord transitions, root motions, patterns of co-occurrence between chords, and changes in harmonic practices over time. The results indicated that the IV chord is the most common chord after the I chord, and is particularly common preceding the tonic.

https://www.jstor.org/stable/23325809

#corpusanalysis #rock #harmony #RollingStone #500GreatestSongs #RomanNumeral #contextfreegrammar #statisticalanalyses #chords #transitions #rootmotions #harmonicpractices #time #music #analysis #musicology

A corpus analysis of rock harmony on JSTOR

TREVOR DE CLERCQ, DAVID TEMPERLEY, A corpus analysis of rock harmony, Popular Music, Vol. 30, No. 1 (January 2011), pp. 47-70

Introducing the medical abstract maker.
https://rdjenkins.github.io/cpblx/
Just hit the ‘Healthcare abstract’ button. Stuck for your submission to congress? Want to share some random conclusions? No problem.

#contextfreegrammar #SciGen #cpblx #opensource

Corporate Bollox Generator example

Corporate Bollox Generator example

Do you know snarXiv?

🎓 Its a paper title genetor trained on the high-energy physics part of arXiv.

🎲 It can be a lot of fun to try to guess which is a real paper on http://snarxiv.org/vs-arxiv/

A fun blog post by the author about the project: http://davidsd.org/2010/09/the-arxiv-according-to-arxiv-vs-snarxiv/

#ContextFreeGrammar #CFG

arXiv vs. snarXiv

Can all Context-Free Grammars be described in Backus-Naur Form/Syntax?

Is BNF a "form" like Chomsky Normal Form or Greiback Normal Form, or is it just a "syntax" that can encode all CFG's and all BNF documents describe a CFG (a bijective encoding)?

The internet only tells me things that are so Basic I don't trust them to know about such questions, or so advanced they already assume I know the answer to this X'D

#Math
#FormalGrammars
#ContextFreeGrammar
#BNF #EBNF #BackusNaur
#Parsing #Parsers