{"id":22025866,"url":"https://github.com/digitallinguistics/javascript","last_synced_at":"2026-04-16T08:35:27.737Z","repository":{"id":42292290,"uuid":"180070191","full_name":"digitallinguistics/javascript","owner":"digitallinguistics","description":"A JavaScript library for working with linguistic data in DLx format","archived":false,"fork":false,"pushed_at":"2023-03-03T13:34:18.000Z","size":862,"stargazers_count":2,"open_issues_count":60,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-14T08:09:39.430Z","etag":null,"topics":["computational-linguistics","digital-humanities","digital-linguistics","dlx","documentary-linguistics","language-documentation","linguistics"],"latest_commit_sha":null,"homepage":"https://developer.digitallinguistics.io/javascript","language":"JavaScript","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/digitallinguistics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-08T04:33:03.000Z","updated_at":"2023-11-15T06:31:36.000Z","dependencies_parsed_at":"2023-01-31T16:45:43.851Z","dependency_job_id":null,"html_url":"https://github.com/digitallinguistics/javascript","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/digitallinguistics/javascript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitallinguistics%2Fjavascript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitallinguistics%2Fjavascript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitallinguistics%2Fjavascript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitallinguistics%2Fjavascript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitallinguistics","download_url":"https://codeload.github.com/digitallinguistics/javascript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitallinguistics%2Fjavascript/sbom","scorecard":{"id":342542,"data":{"date":"2025-08-11","repo":{"name":"github.com/digitallinguistics/javascript","commit":"0f86312b7aed3dfb24da2238b2deedd140db5019"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Warn: no topLevel permission defined: .github/workflows/year.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":3,"reason":"Found 9/27 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":4,"reason":"dependency not pinned by hash detected -- score normalized to 4","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/digitallinguistics/javascript/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/digitallinguistics/javascript/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/digitallinguistics/javascript/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/digitallinguistics/javascript/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/digitallinguistics/javascript/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/digitallinguistics/javascript/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/year.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/digitallinguistics/javascript/year.yml/master?enable=pin","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   2 out of   2 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"32 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-8mmm-9v2q-x3f9","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-6vfc-qv3f-vr6c","Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj","Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-8hfj-j24r-96c4","Warn: Project is vulnerable to: GHSA-wc69-rhjr-hc9g","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-rjqq-98f6-6j3r","Warn: Project is vulnerable to: GHSA-mjxr-4v3x-q3m4","Warn: Project is vulnerable to: GHSA-cgfm-xwp7-2cvr","Warn: Project is vulnerable to: GHSA-rm97-x556-q36h","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-mxhp-79qh-mcx6","Warn: Project is vulnerable to: GHSA-cf4h-3jhx-xvhq","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T06:13:53.285Z","repository_id":42292290,"created_at":"2025-08-18T06:13:53.285Z","updated_at":"2025-08-18T06:13:53.285Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31878071,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T07:36:03.521Z","status":"ssl_error","status_checked_at":"2026-04-16T07:35:53.576Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["computational-linguistics","digital-humanities","digital-linguistics","dlx","documentary-linguistics","language-documentation","linguistics"],"created_at":"2024-11-30T07:20:15.073Z","updated_at":"2026-04-16T08:35:27.707Z","avatar_url":"https://github.com/digitallinguistics.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DLx JavaScript Library\n\nA JavaScript library for working with linguistic data in [DLx format][Daffodil]. For browser and Node.\n\n[Digital Linguistics][website] (DLx) is the science of the digital data management of linguistic data, of the kind typically produced during language documentation projects. This repository contains a JavaScript library for working with linguistic data in the [Data Format for Digital Linguistics][Daffodil] (Daffodil). It includes models for various linguistic objects, useful data and constants, and other utilities for working with language data.\n\n[![npm version](https://img.shields.io/npm/v/@digitallinguistics/javascript.svg)][npm]\n[![npm downloads](https://img.shields.io/npm/dt/@digitallinguistics/javascript.svg)][npm]\n[![GitHub issues](https://img.shields.io/github/issues/digitallinguistics/javascript.svg)][issues]\n[![GitHub test workflow status](https://github.com/digitallinguistics/javascript/workflows/tests/badge.svg)][tests]\n[![Zenodo DOI](https://zenodo.org/badge/180070191.svg)][Zenodo]\n[![GitHub](https://img.shields.io/github/license/digitallinguistics/javascript.svg)][license]\n[![GitHub stars](https://img.shields.io/github/stars/digitallinguistics/javascript.svg?style=social)][GitHub]\n\n[View the API documentation for this library.][docs]\n\nMaintained by [Daniel W. Hieber][personal] (University of California, Santa Barbara). Please cite this library using the following model:\n\n\u003e Hieber, Daniel W. 2020. @digitallinguistics/javascript. DOI:[10.5281/zenodo.597714][Zenodo].\n\n## Contents\n\n* [Getting Help \u0026 Contributing](#getting-help--contributing)\n* [Usage](#usage)\n* [API Documentation][docs]\n\n## Getting Help \u0026 Contributing\n\n* Have a question? [Ask it here.][question]\n\n* Want to request a feature or improvement? [Make a feature request here.][feature]\n\n* Found a bug or other problem? [File a bug report here.][report-issue]\n\n* Want to contribute code to the project? [Check out the contributing guidelines.][contributing]\n\n## Overview\n\nThe DLx JavaScript library has the following exports. See the [API documentation][docs] for complete details on the contents of this library.\n\nExport             | Description\n-------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n`core`             | Base classes and other code reused across this library. Most users will not need to use this module.\n`models`           | A collection of objects representing common linguistic objects, such as `Language`, `Lexeme`, etc. These have various utility functions attached to them, and ensure that their data is valid according to the [DLx Data Format][Daffodil].\n`utilities`        | Assorted utilities for working with data in DLx format\n`utilities/regexp` | Useful regular expressions (e.g. `languageTag.js`, `ISO.js`)\n`utilities/types`  | Type-checking methods (e.g. `isLanguageTag.js`, `isISO.js`)\n\n## Usage\n\n1. Install using npm (`npm i @digitallinguistics/javascript`) or yarn (`yarn add @digitallinguistics/javascript`), or download the library from the [releases page][releases] and include the files you need in your project.\n\n2. In Node, import the library as follows:\n\n  ```js\n  import dlx from '@digitallinguistics/javascript';\n  ```\n\n3. In HTML, link `src/index.js` in a script tag:\n\n  ```html\n  \u003cscript src=dlx/src/index.js type=module\u003e\u003c/script\u003e\n  ```\n\n3. If your project does not support ES modules or recent JavaScript syntax, you may need to bundle and/or transpile this module for use in your code, using libraries like [Babel][Babel] and [webpack][webpack].\n\n4. Use the library in your code:\n\n  ```js\n  import { models } from '@digitallinguistics/javascript';\n\n  const { Lexeme } = models;\n\n  const lexeme = new Lexeme({/* lexeme data */})\n  ```\n\n5. You can also import standalone submodules and files, rather than the entire library:\n\n  ```js\n  import types       from '@digitallinguistics/javascript/types';\n  import punctuation from '@digitallinguistics/javascript/models/Language.js';\n  ```\n\n6. See the [API documentation][docs] for complete details on using the library.\n\n[Babel]:        https://babeljs.io/\n[contributing]: https://github.com/digitallinguistics/javascript/blob/master/.github/CONTRIBUTING.md\n[Daffodil]:     https://format.digitallinguistics.io\n[docs]:         https://developer.digitallinguistics.io/javascript\n[feature]:      https://github.com/digitallinguistics/javascript/issues/new?assignees=\u0026labels=feature\u0026template=feature-request.md\u0026title=\n[GitHub]:       https://github.com/digitallinguistics/javascript\n[issues]:       https://github.com/digitallinguistics/javascript/issues\n[license]:      https://github.com/digitallinguistics/javascript/blob/master/LICENSE.md\n[npm]:          https://www.npmjs.com/package/@digitallinguistics/javascript\n[report-issue]: https://github.com/digitallinguistics/javascript/issues/new?assignees=\u0026labels=bug\u0026template=bug-report.md\u0026title=\n[personal]:     https://danielhieber.com\n[question]:     https://github.com/digitallinguistics/javascript/issues/new?assignees=\u0026labels=question\u0026template=question.md\u0026title=\n[releases]:     https://github.com/digitallinguistics/javascript/releases\n[tests]:        https://github.com/digitallinguistics/javascript/actions\n[webpack]:      https://webpack.js.org/\n[website]:      https://digitallinguistics.io\n[Zenodo]:       https://zenodo.org/badge/latestdoi/180070191\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitallinguistics%2Fjavascript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitallinguistics%2Fjavascript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitallinguistics%2Fjavascript/lists"}