1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-21 11:09:02 +01:00
phorge-phorge/src/applications/owners/lipsum/PhabricatorOwnersPackageContextFreeGrammar.php
epriestley b9568646ac Add an owners package generator for Lipsum
Summary: Ref T12319. Allow `bin/lipsum generate` to generate owners packages.

Test Plan: Generated ~4,000 packages with ~150,000 paths.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T12319

Differential Revision: https://secure.phabricator.com/D17423
2017-02-27 09:11:04 -08:00

60 lines
1.2 KiB
PHP

<?php
final class PhabricatorOwnersPackageContextFreeGrammar
extends PhutilContextFreeGrammar {
protected function getRules() {
return array(
'start' => array(
'[package]',
),
'package' => array(
'[adjective] [noun]',
'[adjective] [noun]',
'[adjective] [noun]',
'[adjective] [noun]',
'[adjective] [adjective] [noun]',
'[adjective] [noun] [noun]',
'[adjective] [adjective] [noun] [noun]',
),
'adjective' => array(
'Temporary',
'Backend',
'External',
'Emergency',
'Applied',
'Advanced',
'Experimental',
'Logging',
'Test',
'Network',
'Ephemeral',
'Clustered',
'Mining',
'Core',
'Remote',
),
'noun' => array(
'Support',
'Services',
'Infrastructure',
'Mail',
'Security',
'Application',
'Microservices',
'Monoservices',
'Megaservices',
'API',
'Storage',
'Records',
'Package',
'Directories',
'Library',
'Concern',
'Cluster',
'Engine',
),
);
}
}