{"id":16689854,"url":"https://github.com/eddieantonio/fsttest","last_synced_at":"2026-06-20T01:31:53.111Z","repository":{"id":57432439,"uuid":"233653480","full_name":"eddieantonio/fsttest","owner":"eddieantonio","description":"Test your Foma FSTs!","archived":false,"fork":false,"pushed_at":"2021-04-16T20:35:41.000Z","size":178,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"development","last_synced_at":"2025-11-27T17:57:37.308Z","etag":null,"topics":["finite-state-transducer","foma","foma-fsts","fst","fsts","testing","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"Python","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/eddieantonio.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}},"created_at":"2020-01-13T17:30:17.000Z","updated_at":"2021-04-16T20:35:44.000Z","dependencies_parsed_at":"2022-09-19T08:02:39.209Z","dependency_job_id":null,"html_url":"https://github.com/eddieantonio/fsttest","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/eddieantonio/fsttest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddieantonio%2Ffsttest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddieantonio%2Ffsttest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddieantonio%2Ffsttest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddieantonio%2Ffsttest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eddieantonio","download_url":"https://codeload.github.com/eddieantonio/fsttest/tar.gz/refs/heads/development","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddieantonio%2Ffsttest/sbom","scorecard":{"id":366086,"data":{"date":"2025-08-11","repo":{"name":"github.com/eddieantonio/fsttest","commit":"8ff71a9aa41a70a30832fa219b72e7478872c16f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","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":"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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"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":"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":"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:0","Info: FSF or OSI recognized license: MIT License: LICENSE: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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'development'"],"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":"Vulnerabilities","score":0,"reason":"18 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2024-48 / GHSA-fj7x-q9j7-g6q6","Warn: Project is vulnerable to: PYSEC-2022-42986 / GHSA-43fp-rhv2-5gv8","Warn: Project is vulnerable to: PYSEC-2023-135 / GHSA-xqr8-7jwr-rhp7","Warn: Project is vulnerable to: PYSEC-2022-238 / GHSA-h3qr-fjhm-jphw","Warn: Project is vulnerable to: PYSEC-2024-60 / GHSA-jjg7-2v4v-x38h","Warn: Project is vulnerable to: PYSEC-2020-92 / GHSA-hj5v-574p-mj7c","Warn: Project is vulnerable to: PYSEC-2022-42969","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-74 / GHSA-j8r2-6x86-q33q","Warn: Project is vulnerable to: GHSA-34jh-p97f-mpxf","Warn: Project is vulnerable to: PYSEC-2023-212 / GHSA-g4mx-q9vg-27p4","Warn: Project is vulnerable to: PYSEC-2020-149 / GHSA-hmv2-79q8-fv6g","Warn: Project is vulnerable to: GHSA-pq67-6m6q-mj2v","Warn: Project is vulnerable to: PYSEC-2021-108 / GHSA-q2q7-5pp4-w6pg","Warn: Project is vulnerable to: PYSEC-2023-192 / GHSA-v845-jxx5-vc9f","Warn: Project is vulnerable to: PYSEC-2020-148 / GHSA-wqvq-5m8c-6g24","Warn: Project is vulnerable to: GHSA-jfmj-5v4g-7637"],"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-18T11:52:31.723Z","repository_id":57432439,"created_at":"2025-08-18T11:52:31.724Z","updated_at":"2025-08-18T11:52:31.724Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34554511,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["finite-state-transducer","foma","foma-fsts","fst","fsts","testing","unit-testing"],"created_at":"2024-10-12T15:49:34.931Z","updated_at":"2026-06-20T01:31:53.083Z","avatar_url":"https://github.com/eddieantonio.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"fsttest\n=======\n\n[![Build Status](https://travis-ci.org/eddieantonio/fsttest.svg?branch=development)](https://travis-ci.org/eddieantonio/fsttest)\n[![codecov](https://codecov.io/gh/eddieantonio/fsttest/branch/development/graph/badge.svg)](https://codecov.io/gh/eddieantonio/fsttest)\n\nTest your Foma FSTs!\n\nInstall\n-------\n\nFor macOS users with [Homebrew](https://brew.sh/):\n\n    $ brew install eddieantonio/eddieantonio/fsttest\n\nFor everybody else:\n\n    $ pip install fsttest\n\n\nUsage\n-----\n\nWrite `test_*.toml` scripts in a folder called `tests/`, then run:\n\n    $ fsttest\n\n\nDocumentation\n-------------\n\n * [How to specify the FST under test](https://github.com/eddieantonio/fsttest/blob/development/docs/fst-under-test.md#how-to-specify-the-fst-under-test)\n\nTutorial\n--------\n\nIn your FST project, create a folder called `tests/`:\n\n    $ mkdir tests\n\nWithin this folder create a file called `test_{something}.toml` where\n`{something}` is something specific to your FST. For example,\n`test_phonology.toml`:\n\n    $ touch tests/test_phonology.toml\n\nUse the following template to create your test:\n\n```toml\n# tests/test_phonology.toml\n[fst]\neval = \"rewrite_rules.xfscript\"\ncompose = [\"TInsertion\", \"NiTDeletion\", \"Cleanup\"]\n\n[[tests]]\nupper = \"ni\u003cayaa\u003cn\"\nexpect = \"dayaan\"\n\n[[tests]]\nlower = \"ki\u003ctayaa\u003cn\"\nexpect = \"kiayaan\"\n```\n\nThen run the test!\n\n    $ fsttest\n    1/1 tests passed! ✨ 🍰 ✨\n\n\n### Line-by-line\n\nLet's breakdown this file, line-by-line.\n\n```toml\n[fst]\n```\n\nThis defines the **FST under test** — that is, the FST we want to use to\ntransduce and test its output.\n\n```toml\neval = \"rewrite_rules.xfscript\"\n```\n\nThis says that our FST under test can be created by running\n`rewrite_rules.xfscript` in Foma, creating an FST. As an example, let's\ntake the following `rewrite_rules.xfscript`:\n\n```xfscript\n# rewrite_rules.xfscript\ndefine Vowel    a | e | i | o | u ;\n\ndefine TInsertion [..] -\u003e t || [n i | k i] \"\u003c\" _ Vowel ;\ndefine NiTDeletion n i \"\u003c\" t -\u003e d || _ Vowel ;\ndefine Cleanup %\u003c -\u003e 0 ;\n```\n\nYours will be different!\n\n```toml\ncompose = [\"TInsertion\", \"NiTDeletion\"]\n```\n\nThis line says that the **FST under test** is the result of _composing_\nthe `TInsertion` regex with the `NiTDeletion` regex. That is, the FST\nputs its input into `TInsertion` and then passes the result to\n`NiTDeletion`. The result of passing it through both FSTs is the result\nwe want to test.\n\n```toml\n[[tests]]\n```\n\nNext we define one or more test cases. Begin every test case with\n`[[tests]]`: note the **two square brackets**!\n\n```toml\nupper = \"ni\u003cayaa\u003cn\"\n```\n\nThis test case feeds the string `ni\u003cayaa\u003cn` into the upper side of the\nFST. The upper side is conventionally the **analysis** side of the FST.\n\n```toml\nexpect = \"dayaan\"\n```\n\nThis says that we **expect** the lower side to be `dayaa\u003cn`. That is,\nthis test case says that, given the analysis `ni\u003cayaa\u003cn`, the FST should\nproduce `dayaa\u003cn` among the possible **surface forms**.\n\n```toml\n[[tests]]\n```\n\nNext, we define another test case.\n\n```toml\nlower = \"kitayaan\"\n```\n\nIn contrast to the previous test, we feed the input to the **lower**\nside of the FST. In other words, we want to do a **lookup**.\nConventionally, this means we're providing a **surface form**, and\nasking the FST to return an analysis.\n\n```toml\nexpect = \"ki\u003cayaa\u003cn\"\n```\n\nThis means we're **expecting** the analysis of `ki\u003ctayaa\u003cn` when we give\nthe FST the wordform of `kitayaan`\n\n\nLicense\n=======\n\nCopyright © 2019, 2020 National Research Council Canada.\n\nLicensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddieantonio%2Ffsttest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feddieantonio%2Ffsttest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddieantonio%2Ffsttest/lists"}