# 🌲 RSyntaxTree **RSyntaxTree** is a graphical syntax tree generator written in the Ruby programming language inspired by [phpSyntaxTree](http://ironcreek.net/phpsyntaxtree/). ### Web Interface See updates and a working web interface available at . ### Installation `# gem install rsyntaxtree` ### Usage For the web interface, see Usage section of . For the command-line interface, type `$rsyntaxtree -h` after installation. Here's what you get: ```text SyntaxTree, (linguistic) syntax tree generator written in Ruby. Usage: rsyntaxtree [options] "[VP [VP [V set] [NP bracket notation]] [ADV here]]" where [options] are: -o, --outdir= Output directory (default: ./) -f, --format= Output format: png, gif, jpg, pdf, or svg (default: png) -l, --leafstyle= visual style of tree leaves: auto, triangle, bar, or nothing (default: auto) -n, --fontstyle= Font style (available when ttf font is specified): sans, serif, cjk (default: sans) -t, --font= Path to a ttf font used to generate tree (optional) -s, --fontsize= Size: 8-26 (default: 16) -m, --margin= Margin: 0-10 (default: 1) -v, --vheight= Connector Height: 0.5-5.0 (default: 2.0) -c, --color= Color text and bars: on or off (default: on) -y, --symmetrize= Generate radically symmetrical, balanced tree: on or off (default: off) -r, --transparent= Make background transparent: on or off (default: off) -p, --polyline= draw polyline connectors: on or off (default: off) -e, --version Print version and exit -h, --help Show this message``` ``` See [the documentation](https://yohasebe.com/rsyntaxtree/#documentation) for more detailed info about the syntax. ### Example **Input text** ```text [S [NP |R|<>SyntaxTree] [VP [V generates] [NP [Adj #\+multilingual\ \+beautiful] [NP syntax\ trees] ] ] ] ``` **Output (PNG or SVG)** See [RSyntaxTree Examples](https://yohasebe.notion.site/yohasebe/RSyntaxTree-Examples-006baf3ac6e84e7193b538a5bf02ad07) for more examples ### Development For the latest updates and downloads please visit ### Author Yoichiro Hasebe ### License RSyntaxTree is distributed under the [MIT License](http://www.opensource.org/licenses/mit-license.php).