Created
March 24, 2009 23:26
-
-
Save cers/84425 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r f084d1578ba1 parser-demo/da.js | |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
+++ b/parser-demo/da.js Wed Mar 25 00:21:33 2009 +0100 | |
@@ -0,0 +1,16 @@ | |
+// set up our parsers | |
+ | |
+var da = new Parser('da'); | |
+da.roles = [ | |
+ {role: 'goal', delimiter: 'til'}, | |
+ {role: 'source', delimiter: 'fra'}, | |
+ {role: 'time', delimiter: 'klokken'}, | |
+ {role: 'time', delimiter: 'på'}, | |
+ {role: 'time', delimiter: 'den'}, | |
+ {role: 'service', delimiter: 'med'}, | |
+ {role: 'service', delimiter: 'gennem'} | |
+]; | |
+da.branching = 'right'; | |
+da.examples = ['b socks med google add', | |
+'add meeting til calendar klokken 1 pm', | |
+'fra Tokyo til San Francisco']; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment