rsyntaxtree 1.0.5 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/.tags +438 -12
  3. data/README.md +75 -35
  4. data/bin/rsyntaxtree +4 -1
  5. data/docs/.gitignore +5 -0
  6. data/docs/404.html +25 -0
  7. data/docs/Gemfile +31 -0
  8. data/docs/_config.yml +77 -0
  9. data/docs/_examples/001.md +22 -0
  10. data/docs/_examples/002.md +31 -0
  11. data/docs/_examples/003.md +25 -0
  12. data/docs/_examples/004.md +25 -0
  13. data/docs/_examples/005.md +22 -0
  14. data/docs/_examples/006.md +25 -0
  15. data/docs/_examples/007.md +26 -0
  16. data/docs/_examples/008.md +28 -0
  17. data/docs/_examples/009.md +24 -0
  18. data/docs/_examples/010.md +48 -0
  19. data/docs/_examples/011.md +37 -0
  20. data/docs/_examples/012.md +40 -0
  21. data/docs/_examples/013.md +62 -0
  22. data/docs/_examples/014.md +47 -0
  23. data/docs/_examples/015.md +30 -0
  24. data/docs/_examples/016.md +82 -0
  25. data/docs/_examples/017.md +22 -0
  26. data/docs/_examples/018.md +28 -0
  27. data/docs/_examples/019.md +59 -0
  28. data/docs/_examples/020.md +39 -0
  29. data/docs/_includes/box_and_circle_table.html +54 -0
  30. data/docs/_includes/escape_char_table.html +28 -0
  31. data/docs/_includes/social_media_links.html +13 -0
  32. data/docs/_layouts/default.html +43 -0
  33. data/docs/assets/css/style.scss +25 -0
  34. data/docs/assets/img/001.png +0 -0
  35. data/docs/assets/img/002.png +0 -0
  36. data/docs/assets/img/003.png +0 -0
  37. data/docs/assets/img/004.png +0 -0
  38. data/docs/assets/img/005.png +0 -0
  39. data/docs/assets/img/006.png +0 -0
  40. data/docs/assets/img/007.png +0 -0
  41. data/docs/assets/img/008.png +0 -0
  42. data/docs/assets/img/009.png +0 -0
  43. data/docs/assets/img/010.png +0 -0
  44. data/docs/assets/img/011.png +0 -0
  45. data/docs/assets/img/012.png +0 -0
  46. data/docs/assets/img/013.png +0 -0
  47. data/docs/assets/img/014.png +0 -0
  48. data/docs/assets/img/015.png +0 -0
  49. data/docs/assets/img/016.png +0 -0
  50. data/docs/assets/img/017.png +0 -0
  51. data/docs/assets/img/018.png +0 -0
  52. data/docs/assets/img/019.png +0 -0
  53. data/docs/assets/img/020.png +0 -0
  54. data/docs/assets/img/elements/circle.png +0 -0
  55. data/docs/assets/img/elements/circle_abc.png +0 -0
  56. data/docs/assets/img/elements/circle_bold.png +0 -0
  57. data/docs/assets/img/elements/circle_hatched.png +0 -0
  58. data/docs/assets/img/elements/circle_one.png +0 -0
  59. data/docs/assets/img/elements/connector.png +0 -0
  60. data/docs/assets/img/elements/connector_bold.png +0 -0
  61. data/docs/assets/img/elements/square.png +0 -0
  62. data/docs/assets/img/elements/square_abc.png +0 -0
  63. data/docs/assets/img/elements/square_bold.png +0 -0
  64. data/docs/assets/img/elements/square_hatched.png +0 -0
  65. data/docs/assets/img/elements/square_one.png +0 -0
  66. data/docs/assets/img/favicon/apple-touch-icon.png +0 -0
  67. data/docs/assets/img/favicon/favicon-16x16.png +0 -0
  68. data/docs/assets/img/favicon/favicon-32x32.png +0 -0
  69. data/docs/assets/img/favicon/favicon.ico +0 -0
  70. data/docs/documentation.md +153 -0
  71. data/docs/documentation_ja.md +166 -0
  72. data/docs/examples.html +68 -0
  73. data/docs/index.html +2 -0
  74. data/img/rsyntaxtree-web-screenshot.png +0 -0
  75. data/img/rsyntaxtree.png +0 -0
  76. data/img/sample.png +0 -0
  77. data/img/sample.svg +38 -0
  78. data/lib/rsyntaxtree/svg_graph.rb +34 -8
  79. data/lib/rsyntaxtree/version.rb +1 -1
  80. data/lib/rsyntaxtree.rb +4 -1
  81. data/rsyntaxtree.gemspec +1 -1
  82. metadata +77 -6
  83. data/syntree.png +0 -0
  84. data/syntree.svg +0 -24
data/README.md CHANGED
@@ -1,71 +1,111 @@
1
- # 🌲 RSyntaxTree: yet another syntax tree generator in Ruby
1
+ <img src='https://github.com/yohasebe/rsyntaxtree/blob/master/img/rsyntaxtree.png?raw=true' style='width: 256px;' />
2
2
 
3
- **RSyntaxTree** is a graphical syntax tree generator written in the Ruby programming language inspired by [phpSyntaxTree](http://ironcreek.net/phpsyntaxtree/).
3
+ **RSyntaxTree** is a graphical syntax tree generator written in the Ruby programming language.
4
+
5
+ ---
6
+
7
+ ### Documentation
8
+
9
+ Documentation is currently available in the following languages:
10
+
11
+ - [English](https://yohasebe.github.io/rsyntaxtree/documentation)
12
+ - [日本語](https://yohasebe.github.io/rsyntaxtree/documentation_ja)
13
+
14
+ ---
4
15
 
5
16
  ### Web Interface
6
17
 
18
+ <img src='https://github.com/yohasebe/rsyntaxtree/blob/master/img/rsyntaxtree-web-screenshot.png?raw=true' width='700px'/>
19
+
7
20
  See updates and a working web interface available at <https://yohasebe.com/rsyntaxtree>.
8
21
 
9
- ### Installation
22
+ You can run RSyntaxTree's web interface on your local machine using Docker Desktop. See [RSyntaxTree Web UI](https://github.com/yohasebe/rsyntaxtree_web)
10
23
 
11
- `# gem install rsyntaxtree`
24
+ ---
12
25
 
13
- ### Usage
26
+ ### Examples
14
27
 
15
- For the web interface, see Usage section of <https://yohasebe.com/rsyntaxtree>.
28
+ See [RSyntaxTree Example Gallery](https://yohasebe.github.io/rsyntaxtree/examples) page for syntax tree samples for
16
29
 
17
- For the command-line interface, type `$rsyntaxtree -h` after installation. Here's what you get:
30
+ - Generative Grammar
31
+ - Combinatory Categorial Grammar (Experimental)
32
+ - Head-Driven Phrase Structure Grammar (Experimental)
33
+ - Cognitive Grammar (Experimental)
18
34
 
19
- ```text
20
- RSyntaxTree, (linguistic) syntax tree generator written in Ruby.
21
35
 
22
- Usage:
23
- rsyntaxtree [options] "[VP [VP [V set] [NP bracket notation]] [ADV here]]"
24
- where [options] are:
25
- -o, --outdir=<s> Output directory (default: ./)
26
- -f, --format=<s> Output format: png, pdf, or svg (default: png)
27
- -l, --leafstyle=<s> visual style of tree leaves: auto, triangle, bar, or nothing (default: auto)
28
- -n, --fontstyle=<s> Font style: sans, serif, cjk, math (default: sans)
29
- -t, --font=<s> Path to a ttf font used to generate tree (optional)
30
- -s, --fontsize=<i> Size: 8-26 (default: 16)
31
- -c, --color=<s> Color text and bars: on or off (default: on)
32
- -y, --symmetrize=<s> Generate symmetrical, balanced tree: on or off (default: on)
33
- -m, --margin=<i> Margin: 0-120 (default: 0)
34
- -v, --vheight=<f> Connector Height: 0.5-2.0 (default: 1.0)
35
- -e, --version Print version and exit
36
- -h, --help Show this message
36
+ **Input text**
37
+
38
+ ```text
39
+ [S
40
+ [NP |R|<>SyntaxTree]
41
+ [VP
42
+ [V generates]
43
+ [NP
44
+ [Adj #\+multilingual\
45
+ \+beautiful]
46
+ [NP syntax\
47
+ trees]
48
+ ]
49
+ ]
50
+ ]
37
51
  ```
38
52
 
39
- ### Tips
53
+ **Output (PNG or SVG)**
54
+
55
+ <img src='https://github.com/yohasebe/rsyntaxtree/blob/master/img/sample.png?raw=true' width='600' />
56
+
57
+ ---
40
58
 
41
- Every branch or leaf of a tree must belong to a node. To create a node, place a label right next to the opening bracket. Arbitrary number of branches can follow with a preceding space.
59
+ ### Installation
42
60
 
43
- There are several modes in which the connectors between terminal nodes and their leaves are drawn differently (auto, triangle, bar, and nothing). In auto mode, a triangle is used if the leaf contains one or more spaces inside (i.e. if it&#8217;s a phrase), but if it contains no spaces (i.e. if it is just a word), a straight bar will be drawn instead (unless the leaf contains a "^" symbol at the end which makes it a single-word phrase).
61
+ `# gem install rsyntaxtree`
44
62
 
45
- You can put a subscript to any node by putting the _ character between the main label and the subscript. For example, NP_TOP will be rendered as NP<sub>TOP</sub>. Or you can select the &#8220;Auto subscript&#8221; option so that nodes of the same label will be automatically numbered. (e.g. NP<sub>1</sub>, NP<sub>2</sub>)</p>
63
+ ---
46
64
 
47
- See https://yohasebe.com/rsyntaxtree for more detailed info about the syntax.
65
+ ### Usage
48
66
 
49
- ### Example
67
+ For the web interface, see Usage section of <https://yohasebe.com/rsyntaxtree>.
50
68
 
51
- Bracket notation (auto-subscript-on):
69
+ For the command-line interface, type `$rsyntaxtree -h` after installation. Here's what you get:
52
70
 
53
71
  ```text
54
- [S [NP RSyntaxTree^][VP [V generates][NP [Adj multilingual] [NP syntax trees]]]]
72
+ RSyntaxTree, (linguistic) syntax tree generator written in Ruby.
73
+
74
+ Usage:
75
+ rsyntaxtree [options] "[VP [VP [V set] [NP bracket notation]] [ADV here]]"
76
+ where [options] are:
77
+ -o, --outdir=<s> Output directory (default: ./)
78
+ -f, --format=<s> Output format: png, gif, jpg, pdf, or svg (default: png)
79
+ -l, --leafstyle=<s> visual style of tree leaves: auto, triangle, bar, or nothing (default: auto)
80
+ -n, --fontstyle=<s> Font style (available when ttf font is specified): sans, serif, cjk (default: sans)
81
+ -t, --font=<s> Path to a ttf font used to generate tree (optional)
82
+ -s, --fontsize=<i> Size: 8-26 (default: 16)
83
+ -m, --margin=<i> Margin: 0-10 (default: 1)
84
+ -v, --vheight=<f> Connector Height: 0.5-5.0 (default: 2.0)
85
+ -c, --color=<s> Color text and bars: on or off (default: on)
86
+ -y, --symmetrize=<s> Generate radically symmetrical, balanced tree: on or off (default: off)
87
+ -r, --transparent=<s> Make background transparent: on or off (default: off)
88
+ -p, --polyline=<s> draw polyline connectors: on or off (default: off)
89
+ -e, --version Print version and exit
90
+ -h, --help Show this message```
55
91
  ```
56
92
 
57
- Resulting PNG
93
+ See the [documentation](https://yohasebe.github.io/rsyntaxtree/documentation) for more detailed info about the syntax.
58
94
 
59
- ![RSyntaxTree generates multilingual syntax trees](https://i.gyazo.com/6bb68b0bdb35d7a10c4a11d5788d484f.png)
95
+ ---
60
96
 
61
97
  ### Development
62
98
 
63
- For the latest updates and downloads please visit http://github.com/yohasebe/rsyntaxtree
99
+ For the latest updates and downloads please visit <http://github.com/yohasebe/rsyntaxtree>
100
+
101
+ ---
64
102
 
65
103
  ### Author
66
104
 
67
105
  Yoichiro Hasebe <yohasebe@gmail.com>
68
106
 
107
+ ---
108
+
69
109
  ### License
70
110
 
71
111
  RSyntaxTree is distributed under the [MIT License](http://www.opensource.org/licenses/mit-license.php).
data/bin/rsyntaxtree CHANGED
@@ -38,6 +38,8 @@ EOS
38
38
  :default => "off"
39
39
  opt :transparent, "Make background transparent: on or off",
40
40
  :default => "off"
41
+ opt :polyline, "draw polyline connectors: on or off",
42
+ :default => "off"
41
43
  end
42
44
 
43
45
  Optimist::die :outdir, "must be an exsting directory path" unless FileTest::directory?(opts[:outdir])
@@ -51,6 +53,7 @@ Optimist::die :symmetrize, "must be either on or off" unless /\A(on|off|true|fal
51
53
  Optimist::die :margin, "must be in the range of 0-10" if opts[:margin] < 0 || opts[:margin] > 10
52
54
  Optimist::die :vheight, "must be in the range of 0.5-5.0" if opts[:vheight] < 0.5 || opts[:vheight] > 5.0
53
55
  Optimist::die :transparent, "must be either on or off" unless /\A(on|off|true|false)\z/ =~ opts[:transparent]
56
+ Optimist::die :polyline, "must be either on or off" unless /\A(on|off|true|false)\z/ =~ opts[:polyline]
54
57
 
55
58
  string_opts = {}
56
59
  opts.each do |key, value|
@@ -76,7 +79,6 @@ begin
76
79
  rsg.draw_tree.write(filepath)
77
80
  when "png"
78
81
  outfile = File.new(filepath, "wb")
79
- # outfile.write rsg.draw_png
80
82
  outfile.write rsg.draw_tree
81
83
  outfile.close
82
84
  when "svg"
@@ -88,6 +90,7 @@ rescue RSTError => e
88
90
  puts e
89
91
  exit
90
92
  rescue => e
93
+ p e
91
94
  puts "Error: something unexpected occurred"
92
95
  exit
93
96
  end
data/docs/.gitignore ADDED
@@ -0,0 +1,5 @@
1
+ _site
2
+ .sass-cache
3
+ .jekyll-cache
4
+ .jekyll-metadata
5
+ vendor
data/docs/404.html ADDED
@@ -0,0 +1,25 @@
1
+ ---
2
+ permalink: /404.html
3
+ layout: default
4
+ ---
5
+
6
+ <style type="text/css" media="screen">
7
+ .container {
8
+ margin: 10px auto;
9
+ max-width: 600px;
10
+ text-align: center;
11
+ }
12
+ h1 {
13
+ margin: 30px 0;
14
+ font-size: 4em;
15
+ line-height: 1;
16
+ letter-spacing: -1px;
17
+ }
18
+ </style>
19
+
20
+ <div class="container">
21
+ <h1>404</h1>
22
+
23
+ <p><strong>Page not found :(</strong></p>
24
+ <p>The requested page could not be found.</p>
25
+ </div>
data/docs/Gemfile ADDED
@@ -0,0 +1,31 @@
1
+ source "https://rubygems.org"
2
+ # Hello! This is where you manage which Jekyll version is used to run.
3
+ # When you want to use a different version, change it below, save the
4
+ # file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
5
+ #
6
+ # bundle exec jekyll serve
7
+ #
8
+ # This will help ensure the proper Jekyll version is running.
9
+ # Happy Jekylling!
10
+ # gem "jekyll", "~> 4.2.1"
11
+ # This is the default theme for new Jekyll sites. You may change this to anything you like.
12
+ gem "minima", "~> 2.5"
13
+ # If you want to use GitHub Pages, remove the "gem "jekyll"" above and
14
+ # uncomment the line below. To upgrade, run `bundle update github-pages`.
15
+ gem "github-pages", group: :jekyll_plugins
16
+
17
+ # If you have any plugins, put them here!
18
+ group :jekyll_plugins do
19
+ gem "jekyll-feed", "~> 0.12"
20
+ end
21
+
22
+ # Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
23
+ # and associated library.
24
+ platforms :mingw, :x64_mingw, :mswin, :jruby do
25
+ gem "tzinfo", "~> 1.2"
26
+ gem "tzinfo-data"
27
+ end
28
+
29
+ # Performance-booster for watching directories on Windows
30
+ gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
31
+ gem "webrick"
data/docs/_config.yml ADDED
@@ -0,0 +1,77 @@
1
+ # Welcome to Jekyll!
2
+ #
3
+ # This config file is meant for settings that affect your whole blog, values
4
+ # which you are expected to set up once and rarely edit after that. If you find
5
+ # yourself editing this file very often, consider using Jekyll's data files
6
+ # feature for the data you need to update frequently.
7
+ #
8
+ # For technical reasons, this file is *NOT* reloaded automatically when you use
9
+ # 'bundle exec jekyll serve'. If you change this file, please restart the server process.
10
+ #
11
+ # If you need help with YAML syntax, here are some quick references for you:
12
+ # https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml
13
+ # https://learnxinyminutes.com/docs/yaml/
14
+ #
15
+ # Site settings
16
+ # These are used to personalize your new site. If you look in the HTML files,
17
+ # you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
18
+ # You can create any custom variable you would like, and they will be accessible
19
+ # in the templates via {{ site.myvariable }}.
20
+
21
+ title: RSyntaxTree
22
+ email: yohasebe@gmail.com
23
+ description: Syntax tree generator made with Ruby
24
+ baseurl: "/rsyntaxtree/"
25
+ domain: "yohasebe.github.io"
26
+ url: "https://yohasebe.github.io"
27
+ twitter_username: yohasebe
28
+ github_username: yohasebe
29
+
30
+ # Build settings
31
+ remote_theme: pages-themes/cayman@v0.2.0
32
+ plugins:
33
+ - jekyll-remote-theme # add this line to the plugins list if you already have one:
34
+
35
+
36
+ markdown: kramdown
37
+
38
+ # Exclude from processing.
39
+ # The following items will not be processed, by default.
40
+ # Any item listed under the `exclude:` key here will be automatically added to
41
+ # the internal "default list".
42
+ #
43
+ # Excluded items can be processed by explicitly listing the directories or
44
+ # their entries' file path in the `include:` list.
45
+ #
46
+ exclude:
47
+ - Gemfile
48
+ - Gemfile.lock
49
+ # - .sass-cache/
50
+ # - .jekyll-cache/
51
+ # - gemfiles/
52
+
53
+ github:
54
+ - repository_url: https://github.com/yohasebe/rsyntaxtree
55
+
56
+ collections:
57
+ - examples
58
+
59
+ social-media:
60
+ email:
61
+ id: 'yohasebe@gmail.com'
62
+ href: 'mailto:'
63
+ title: 'Email'
64
+ fa-icon: 'fa-envelope'
65
+ category: 'fa'
66
+ twitter:
67
+ id: 'yohasebe'
68
+ href: 'https://www.twitter.com/'
69
+ title: 'Twitter'
70
+ fa-icon: 'fa-twitter'
71
+ category: 'fab'
72
+ github:
73
+ id: 'yohasebe'
74
+ href: 'https://github.com/'
75
+ title: 'GitHub'
76
+ fa-icon: 'fa-github'
77
+ category: 'fab'
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: "001"
3
+ colorization: "on"
4
+ category: "General"
5
+ polyline: "off"
6
+ symmetrization: "off"
7
+ connector: "auto"
8
+ font: "Noto Serif"
9
+ reference:
10
+ ---
11
+ ```
12
+ [A
13
+ [B
14
+ [D]
15
+ [E]
16
+ ]
17
+ [C
18
+ [F]
19
+ [G]
20
+ ]
21
+ ]
22
+ ```
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: "002"
3
+ colorization: "off"
4
+ category: "Generative Grammar"
5
+ polyline: "off"
6
+ symmetrization: "off"
7
+ connector: "auto"
8
+ font: "Noto Serif"
9
+ reference: "Chomsky 1995: 50"
10
+ ---
11
+ ```
12
+ [CP
13
+ [John]
14
+ [TP
15
+ [T
16
+ [V
17
+ [cause]
18
+ [V fall]
19
+ ]
20
+ [T]
21
+ ]
22
+ [VP
23
+ [V *t*_c_]
24
+ [CP
25
+ [books]
26
+ [*t*_f_]
27
+ ]
28
+ ]
29
+ ]
30
+ ]
31
+ ```
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: "003"
3
+ colorization: "off"
4
+ category: "Generative Grammar"
5
+ polyline: "off"
6
+ symmetrization: "off"
7
+ connector: "auto"
8
+ font: "Noto Serif"
9
+ reference: "Chomsky 1995: 62"
10
+ ---
11
+ ```
12
+ [VP
13
+ [John]
14
+ [V'
15
+ [V *e*]
16
+ [VP
17
+ [NP a book]
18
+ [V'
19
+ [V gave]
20
+ [to\-Bill]
21
+ ]
22
+ ]
23
+ ]
24
+ ]
25
+ ```
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: "004"
3
+ colorization: "off"
4
+ category: "Generative Grammar"
5
+ polyline: "off"
6
+ symmetrization: "off"
7
+ connector: "auto"
8
+ font: "Noto Serif"
9
+ reference: "Chomsky 1995: 180"
10
+ ---
11
+ ```
12
+ [VP_1_
13
+ [NP_1_ John]
14
+ [V'_1_
15
+ [V_1_ *e*]
16
+ [VP_2_
17
+ [NP_2_ the book]
18
+ [V'_2_
19
+ [V_2_ put]
20
+ [ZP on the shelf]
21
+ ]
22
+ ]
23
+ ]
24
+ ]
25
+ ```
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: "005"
3
+ colorization: "off"
4
+ category: "Generative Grammar"
5
+ polyline: "off"
6
+ symmetrization: "off"
7
+ connector: "none"
8
+ font: "Noto Serif"
9
+ reference: "Chomsky 1995: 355"
10
+ ---
11
+ ```
12
+ [X__max__
13
+ [\[Y\−X\]]
14
+ [YP
15
+ [Spec_1_]
16
+ [Y'
17
+ [*t*]
18
+ [ZP]
19
+ ]
20
+ ]
21
+ ]
22
+ ```
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: "006"
3
+ colorization: "off"
4
+ category: "Generative Grammar"
5
+ polyline: "off"
6
+ symmetrization: "off"
7
+ connector: "none"
8
+ font: "Noto Serif"
9
+ reference: "Chomsky 1995: 369"
10
+ ---
11
+ ```
12
+ [𝑣P
13
+ [Spec_2_]
14
+ [𝑣'
15
+ [Subj]
16
+ [𝑣'
17
+ [Vb]
18
+ [VP
19
+ [*t*_v_]
20
+ [Obj]
21
+ ]
22
+ ]
23
+ ]
24
+ ]
25
+ ```
@@ -0,0 +1,26 @@
1
+ ---
2
+ name: "007"
3
+ colorization: "off"
4
+ category: "Generative Grammar"
5
+ polyline: "off"
6
+ symmetrization: "off"
7
+ connector: "bar"
8
+ font: "Noto Serif"
9
+ reference:
10
+ ---
11
+ ```
12
+ [XP
13
+ [W Specifier\
14
+ 指定部]
15
+ [X'
16
+ [X'
17
+ [X Head\
18
+ 主要部]
19
+ [Y Complement\
20
+ 補部]
21
+ ]
22
+ [Z Modifier\
23
+ 付加部]
24
+ ]
25
+ ]
26
+ ```
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: "008"
3
+ colorization: "off"
4
+ category: "Generative Grammar"
5
+ polyline: "off"
6
+ symmetrization: "off"
7
+ connector: "auto"
8
+ font: "Noto Serif"
9
+ reference:
10
+ ---
11
+ ```
12
+ [𝑣P
13
+ [NP 太郎が]
14
+ [𝑣'
15
+ [VP
16
+ [𝑣P
17
+ [NP ^泥棒に]
18
+ [𝑣'
19
+ [VP ^財布を盗む]
20
+ [𝑣]
21
+ ]
22
+ ]
23
+ [V られ]
24
+ ]
25
+ [𝑣]
26
+ ]
27
+ ]
28
+ ```
@@ -0,0 +1,24 @@
1
+ ---
2
+ name: "009"
3
+ colorization: "off"
4
+ category: "Generative Grammar"
5
+ polyline: "off"
6
+ symmetrization: "off"
7
+ connector: "auto"
8
+ font: "Noto Serif"
9
+ reference:
10
+ ---
11
+ ```
12
+ [S__*__
13
+ [NP α_1_]
14
+ [INFL (AGR)]
15
+ [VP
16
+ [V]
17
+ [NP α_2_]
18
+ [PP
19
+ [P]
20
+ [NP α_3_]
21
+ ]
22
+ ]
23
+ ]
24
+ ```
@@ -0,0 +1,48 @@
1
+ ---
2
+ name: "010"
3
+ category: "Generative Grammar"
4
+ polyline: "off"
5
+ colorization: "on"
6
+ symmetrization: "off"
7
+ connector: "none"
8
+ font: "Noto Serif"
9
+ reference: "Radford 2004"
10
+ ---
11
+ ```
12
+ [CP
13
+ [C
14
+ ø]
15
+ [TP
16
+ [PRN
17
+ **They**+>2
18
+ ]
19
+ [T'
20
+ [T
21
+ Will
22
+ ]
23
+ [vP
24
+ [PRN
25
+ ~**they**~+2
26
+ ]
27
+ [v'
28
+ [v
29
+ ø<>\+<>*get*+>1
30
+ ]
31
+ [VP
32
+ [DP
33
+ the<>teacher]
34
+ [V'
35
+ [V
36
+ ~*get*~+1
37
+ ]
38
+ [QP
39
+ a<>present
40
+ ]
41
+ ]
42
+ ]
43
+ ]
44
+ ]
45
+ ]
46
+ ]
47
+ ]
48
+ ```
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: "011"
3
+ colorization: "off"
4
+ category: "Combinatory Categorial Grammar (Experimental)"
5
+ polyline: "off"
6
+ symmetrization: "off"
7
+ connector: "none"
8
+ font: "Noto Serif"
9
+ reference:
10
+ ---
11
+ ```
12
+ [S\
13
+ \<
14
+ [NP\
15
+ \>
16
+ [NP/N\
17
+ ---\
18
+ *the*
19
+ ]
20
+ [N\
21
+ ---\
22
+ *dog*
23
+ ]
24
+ ]
25
+ [S\\NP\
26
+ \>
27
+ [(S\\NP)\\NP\
28
+ ---\
29
+ *bit*
30
+ ]
31
+ [NP\
32
+ ---\
33
+ *John*
34
+ ]
35
+ ]
36
+ ]
37
+ ```
@@ -0,0 +1,40 @@
1
+ ---
2
+ name: "012"
3
+ colorization: "off"
4
+ category: "Combinatory Categorial Grammar (Experimental)"
5
+ polyline: "off"
6
+ symmetrization: "off"
7
+ connector: "none"
8
+ font: "Noto Serif"
9
+ reference:
10
+ ---
11
+ ```
12
+ [S\
13
+ \>
14
+ [S/NP\
15
+ B_\>_
16
+ [S/(S\\NP)\
17
+ T_\>_
18
+ [NP\
19
+ \>
20
+ [NP/N\
21
+ ---\
22
+ *the*
23
+ ]
24
+ [N\
25
+ ---\
26
+ *dog*
27
+ ]
28
+ ]
29
+ ]
30
+ [(S\\NP)/NP\
31
+ ---\
32
+ *bit*
33
+ ]
34
+ ]
35
+ [NP\
36
+ ---\
37
+ *John*
38
+ ]
39
+ ]
40
+ ```