Lingua...rammar(3pm)

πŸ“¦
version 1.38 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– NAME πŸ’–

Lingua::EN::NameGrammar β€” bestie, this is the grammar tree for Lingua::EN::NameParse. That's it, that's the whole vibe ✨

(You'll see the page header render it all squished as Lingua...rammar(3pm) β€” it's the same girl, she's just in her abbreviated era πŸ’…)


🌸 SYNOPSIS 🌸

Okay so these are internal functions, meaning you don't call them yourself β€” they get called from the NameParse.pm module. Not me gatekeeping, that's literally just the architecture πŸŽ€


✨ DESCRIPTION ✨

It's giving… a grammar tree of personal name syntax for the Lingua::EN::NameParse module. Periodt.

The grammar defined here is meant to be used with the Parse::RecDescent module. πŸ¦‹

Heads up, bestie, this part is important: parsing here is done depth first, which means it matches the shortest string first. So to dodge premature matches β€” when one rule is a subset of another, longer rule β€” that shorter rule has to show up after the longer one. Otherwise she'll snatch the match too early and the whole thing is a mess 😭

No cap, go read the Parse::RecDescent documentation for more details on this. It's the source of truth, I'm just the messenger 🫢


πŸ‘‘ AUTHOR πŸ‘‘

NameParse::Grammar was written by Kim Ryan <kimryan at cpan dot org>. Iconic behavior, honestly πŸ’œ


Copyright (c) 2018 Kim Ryan. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. 🌈


And that's the whole page, bestie! This one shipped with perl v5.28.0 and it's dated 2018-11-17. Go forth and parse some names, you absolute main character πŸ§šπŸ’–

πŸ“¦ where this page comes from