{"id":18862134,"url":"https://github.com/yohasebe/rsyntaxtree","last_synced_at":"2025-05-16T11:05:06.042Z","repository":{"id":738743,"uuid":"389209","full_name":"yohasebe/rsyntaxtree","owner":"yohasebe","description":"Syntax tree generator for linguistic research","archived":false,"fork":false,"pushed_at":"2025-03-03T02:00:22.000Z","size":200558,"stargazers_count":107,"open_issues_count":3,"forks_count":21,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-10T16:09:24.860Z","etag":null,"topics":["linguistics","ruby","rubynlp","svg","syntax-tree","visualization"],"latest_commit_sha":null,"homepage":"http://yohasebe.com/rsyntaxtree","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yohasebe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2009-11-29T14:14:09.000Z","updated_at":"2025-04-28T20:35:13.000Z","dependencies_parsed_at":"2024-03-28T12:00:16.408Z","dependency_job_id":"3f4ba7ab-53ce-4975-9ce0-fbb80d82a8f8","html_url":"https://github.com/yohasebe/rsyntaxtree","commit_stats":null,"previous_names":[],"tags_count":53,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yohasebe%2Frsyntaxtree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yohasebe%2Frsyntaxtree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yohasebe%2Frsyntaxtree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yohasebe%2Frsyntaxtree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yohasebe","download_url":"https://codeload.github.com/yohasebe/rsyntaxtree/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254518384,"owners_count":22084374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["linguistics","ruby","rubynlp","svg","syntax-tree","visualization"],"created_at":"2024-11-08T04:33:23.415Z","updated_at":"2025-05-16T11:05:01.032Z","avatar_url":"https://github.com/yohasebe.png","language":"Ruby","funding_links":[],"categories":["NLP Pipeline Subtasks"],"sub_categories":["Syntactic Processing"],"readme":"\u003cimg src='https://github.com/yohasebe/rsyntaxtree/blob/master/img/rsyntaxtree.png?raw=true' style='width: 256px;' /\u003e\n\n**RSyntaxTree** is a graphical syntax tree generator for linguistic research \n\n## Documentation\n\nDocumentation is currently available in the following languages:\n\n- [Documentation in English](https://yohasebe.github.io/rsyntaxtree/documentation)\n- [日本語ドキュメント](https://yohasebe.github.io/rsyntaxtree/documentation_ja)\n\n- [Example Gallery](https://yohasebe.github.io/rsyntaxtree/examples)\n\n## Web Interface\n\n\u003cimg src='https://github.com/yohasebe/rsyntaxtree/blob/master/img/rsyntaxtree-web-screenshot.png?raw=true' width='700px'/\u003e\n\nSee updates and a working web interface available at \u003chttps://yohasebe.com/rsyntaxtree\u003e.\n\nYou can run RSyntaxTree's web interface on your local machine using Docker Desktop. See [RSyntaxTree Web UI](https://github.com/yohasebe/rsyntaxtree_web)\n\n## Examples\n\nSee [RSyntaxTree Example Gallery](https://yohasebe.github.io/rsyntaxtree/examples) page for examples for\n\n- Generative Grammar\n- Combinatory Categorial Grammar\n- Head-Driven Phrase Structure Grammar\n- Cognitive Grammar\n- Construction Grammar\n- Pragmatics\n- Phonology\n- etc.\n\n**NOTE**: Some tree structures in the example gallery are experimental in the sense that they are not drawn according to conventions of the field.\n\n**Input text**\n\n```text\n[S\n  [NP |R|\u003c\u003eSyntaxTree]\n  [VP\n    [V generates]\n    [NP\n      [Adj #\\+multilingual\\\n            \\+beautiful]\n      [NP syntax\\\n          trees]\n    ]\n  ]\n]\n```\n\n**Output (PNG or SVG)**\n\n\u003cimg src='https://github.com/yohasebe/rsyntaxtree/blob/master/img/sample.png?raw=true' width='600' /\u003e\n\n## Installation\n\n```\ngem install rsyntaxtree\n```\n\n### macOS Installation Notice\n\n**Important for macOS users:** If you are installing the RSyntaxTree gem directly on macOS, you might encounter build errors for some native extensions (specifically for `gobject-introspection`, `cairo-gobject`, and `gio2`). These errors occur due to macOS linker requirements for dynamic symbol resolution. To work around this issue, please run the following commands in your terminal **before** installing RSyntaxTree:\n\n```bash\ngem install gobject-introspection -- --with-ldflags=\"-Wl,-undefined,dynamic_lookup\"\ngem install cairo-gobject -- --with-ldflags=\"-Wl,-undefined,dynamic_lookup\"\ngem install gio2 -- --with-ldflags=\"-Wl,-undefined,dynamic_lookup\"\n```\n\nAfter executing these commands, you can install RSyntaxTree normally:\n\n```bash\ngem install rsyntaxtree\n```\n\nAlternatively, if you prefer a smoother installation process, consider using the [Docker image](https://hub.docker.com/r/yohasebe/rsyntaxtree) or the [web interface](https://yohasebe.com/rsyntaxtree).\n\n## Usage\n\nFor the web interface, see Usage section of \u003chttps://yohasebe.com/rsyntaxtree\u003e.\n\nFor the command-line interface, type `$rsyntaxtree -h` after installation. Here's what you get:\n\n```text\nRSyntaxTree, (linguistic) syntax tree generator written in Ruby.\n\nUsage:\n       1) rsyntaxtree [options] \"[VP [VP [V set] [NP bracket notation]] [ADV here]]\"\n       2) rsyntaxtree [options] \"/path/to/text/file\"\nwhere [options] are:\n  -o, --outdir=\u003cs\u003e                     Output directory (default: ./)\n  -u, --outfilename=\u003cs\u003e                Output file base name (default: syntree)\n  -f, --format=\u003cs\u003e                     Output format: png, gif, jpg, pdf, or svg (default: png)\n  -l, --leafstyle=\u003cs\u003e                  visual style of tree leaves: auto, triangle, bar, or nothing (default: auto)\n  -n, --fontstyle=\u003cs\u003e                  Font style (available when ttf font is specified): sans, serif, cjk, mono (default: sans)\n  -t, --font=\u003cs\u003e                       Path to a ttf font used to generate tree (optional)\n  -s, --fontsize=\u003ci\u003e                   Size: 8-26 (default: 16)\n  -i, --linewidth=\u003ci\u003e                  Size: 1-5 (default: 1)\n  -v, --vheight=\u003cf\u003e                    Connector Height: 0.5-5.0 (default: 2.0)\n  -c, --color=\u003cs\u003e                      Color text and bars: modern, traditional, or off (default: modern)\n  -y, --symmetrize=\u003cs\u003e                 Generate radically symmetrical, balanced tree: on or off (default: off)\n  -r, --transparent=\u003cs\u003e                Make background transparent: on or off (default: off)\n  -p, --polyline=\u003cs\u003e                   draw polyline connectors: on or off (default: off)\n  -d, --hide-default-connectors=\u003cs\u003e    make default connectors transparent: on or off (default: off)\n  -h, --help                           This is a custom help message\n  -e, --version                        Print version and exit\n```\n\nSee the [documentation](https://yohasebe.github.io/rsyntaxtree/documentation) for more detailed info about the syntax.\n\n## References\n\nPlease use the following BibTeX entry when referring to RSyntaxTree.\n\n```\n@misc{rsyntaxtree_2024,\n  author = {Yoichiro Hasebe},\n  title = {RSyntaxTree: A graphical syntax tree image generator}\n  url = {https://yohasebe.com/rsyntaxtree},\n  year = {2024}\n}\n```\n\n## Development\n\nFor the latest updates and downloads please visit \u003chttp://github.com/yohasebe/rsyntaxtree\u003e\n\n## Author\n\nYoichiro Hasebe \u003cyohasebe@gmail.com\u003e\n\n## License\n\nRSyntaxTree is distributed under the [MIT License](http://www.opensource.org/licenses/mit-license.php).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyohasebe%2Frsyntaxtree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyohasebe%2Frsyntaxtree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyohasebe%2Frsyntaxtree/lists"}