{"id":15168560,"url":"https://github.com/antononcube/wl-dsltranslation-paclet","last_synced_at":"2026-02-04T11:39:48.923Z","repository":{"id":158976096,"uuid":"634317094","full_name":"antononcube/WL-DSLTranslation-paclet","owner":"antononcube","description":"Wolfram Language (aka Mathematica) paclet for translation of natural language commands into code.","archived":false,"fork":false,"pushed_at":"2025-05-04T17:36:33.000Z","size":273,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-04T18:19:11.809Z","etag":null,"topics":["cli","code-generation","dsl","mathematica","raku","translation","web-api","wl"],"latest_commit_sha":null,"homepage":"https://resources.wolframcloud.com/PacletRepository/resources/AntonAntonov/DSLTranslation/","language":"Mathematica","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/antononcube.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-04-29T18:24:21.000Z","updated_at":"2025-05-04T17:36:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"66ae7436-0394-45ad-9a78-9443e1547468","html_url":"https://github.com/antononcube/WL-DSLTranslation-paclet","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"99cebd661fa15d089cbd4adad67f1d854856a7ac"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/antononcube/WL-DSLTranslation-paclet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antononcube%2FWL-DSLTranslation-paclet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antononcube%2FWL-DSLTranslation-paclet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antononcube%2FWL-DSLTranslation-paclet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antononcube%2FWL-DSLTranslation-paclet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antononcube","download_url":"https://codeload.github.com/antononcube/WL-DSLTranslation-paclet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antononcube%2FWL-DSLTranslation-paclet/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264502344,"owners_count":23618576,"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":["cli","code-generation","dsl","mathematica","raku","translation","web-api","wl"],"created_at":"2024-09-27T06:22:45.984Z","updated_at":"2026-02-04T11:39:48.875Z","avatar_url":"https://github.com/antononcube.png","language":"Mathematica","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DSLTranslation WL paclet\n\nWolfram Language (aka Mathematica) paclet for translation of natural language commands into code.\n\n- Domain Specific Language (DSL) translation can be done via a Web service or an (OS Shell) Command Line Interface (CLI) command.\n- By default a Web service is used, with the URL: \"http://accendodata.net:5040/translate\".\n- By default the output is copied to the clipboard. (Code results can be just pasted and executed.)\n- There are signatures and options that allow the specification of the from- and to-language used in DSL the translation.\n\nThis diagram summarizes the notebook-server and notebook-CLI interactions:\n\n```mermaid\ngraph TD\n\tNB\u003eNotebook]\n    WL{{WL}}\n\tRaku{{Raku}}\n\tRakuLocal{{Raku}}\n\tWebAPI[[Web API]]\n\tRakuServer[\"DSL translator\u003cbr/\u003eweb service\"]\n\tRakuCLI[\"DSL translator CLI\"]\n\tNB \u003c--\u003e WebAPI \n    RakuServer \u003c--\u003e WebAPI\n\tNB \u003c--\u003e RakuCLI\n\tRakuServer -.- Raku \n\tWebAPI -.- WL\n\tRakuCLI -.- RakuLocal\n\tsubgraph Local\n\t\tRakuLocal\n\t\tWL\n\t\tRakuCLI\n\tend\n\tsubgraph Server\n\t\tRaku\n\t\tRakuServer\n\tend\n```\n\n------\n\n## Usage examples\n\nGenerate Wolfram Language (WL) code for Latent Semantic Analysis (LSA) command:\n\n```mathematica\nDSLTranslation[\"use aDocs; create document term matrix; extract 20 topics; show topics table\"]\n```\n\n```\nLSAMonUnit[aDocs]⟹LSAMonMakeDocumentTermMatrix[]⟹LSAMonExtractTopics[\"NumberOfTopics\" -\u003e 20]⟹LSAMonEchoTopicsTable[]\n```\n\n\nTranslate LSA command from English to Python:\n\n```mathematica\nDSLTranslation[\"create document term matrix\", \"Python\"]\n```\n\n```\n\".make_document_term_matrix( )\"\n```\n\nTranslate classifier creation command from English to Bulgarian:\n\n```mathematica\nDSLTranslation[\"create a random forest classifier\", \"English\" -\u003e \"Bulgarian\"]\n```\n```\n\"тренирай класификатор с метод: random forest\"\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantononcube%2Fwl-dsltranslation-paclet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantononcube%2Fwl-dsltranslation-paclet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantononcube%2Fwl-dsltranslation-paclet/lists"}