Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

108
LINES

< > BotCompany Repo | #1002281 // NL Parsing Rules

Natural language

. = dot
! = dot

<sentence> <dot> = line
testline = line

beginning = noun
the <noun> = noun
in = forish
<noun> <noun> = noun
<adder>, <sentence> = sentence

say = verb
<quoted> = string
<string> = noun

know = verb
someone = noun

<noun> = noun_opt
= noun_opt

already = adder
actually = adder
now = adder

If = ifish
you = noun
someone's = myish
<myish> <noun> = noun
name = noun

<noun> <verb> = sentence
<noun> <verb> <noun> = sentence
<verb> = command
<verb> <noun> = command
<command> = sentence

does = helpverb
do = helpverb
will = helpverb

is = qverb
are = qverb
am = qverb

<helpverb> <noun> <verb> = question
<helpverb> <noun> <verb> <noun_opt> = question
<qverb> <noun> <noun_opt> = question

<ifish> <sentence>, <sentence> = sentence

ask = verb
asks = verb

for = forish
<forish> <noun> = adder
your = myish

<sentence> and <sentence> = sentence

don't <verb> = verb
have = verb
anything = noun
anything else = noun

<noun> to <verb> = noun

<sentence> <adder> = sentence

I'm = imish
he's = imish
she's = imish
we're = imish
you're = imish

<imish> <adjective> = sentence

cool = adjective
lame = adjective

are = verb
am = verb
were = verb
Is = verb

my = myish

This = noun

Nice = adjective
Little = adjective

a = aish
an = aish

<adjective> <noun> = noun
<aish> <noun> = noun

sentence = noun
I = noun
He = noun
She = noun
We = noun
it = noun
noun = noun

<noun> <verb> <adjective> = sentence

Author comment

Began life as a copy of #1002280

download  show line numbers   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1002281
Snippet name: NL Parsing Rules
Eternal ID of this version: #1002281/1
Text MD5: 2cf1d2bab98f4b3749d6e25d2cce7645
Author: stefan
Category:
Type: Natural language
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-01-18 21:30:33
Source code size: 1520 bytes / 108 lines
Pitched / IR pitched: No / No
Views / Downloads: 775 / 1701
Referenced in: [show references]