{"id":13410337,"url":"https://github.com/greenlikeorange/knayi-myscript","last_synced_at":"2025-10-22T11:49:02.126Z","repository":{"id":485233,"uuid":"21328146","full_name":"greenlikeorange/knayi-myscript","owner":"greenlikeorange","description":"Myanmar Language Script Library","archived":false,"fork":false,"pushed_at":"2023-03-03T04:27:11.000Z","size":2090,"stargazers_count":77,"open_issues_count":23,"forks_count":19,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-10-22T11:48:58.702Z","etag":null,"topics":["burmese-nlp","fontconvert","fontdetect","myanmar","text-normalization","unicode","zawgyi"],"latest_commit_sha":null,"homepage":"https://knayi-myscript.kny.co/#debug-mode","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/greenlikeorange.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2014-06-29T17:18:02.000Z","updated_at":"2025-08-14T05:17:24.000Z","dependencies_parsed_at":"2023-07-05T14:56:44.874Z","dependency_job_id":null,"html_url":"https://github.com/greenlikeorange/knayi-myscript","commit_stats":{"total_commits":191,"total_committers":10,"mean_commits":19.1,"dds":"0.26178010471204194","last_synced_commit":"a5759b411003b2acd54dd74a4c62668f91e7c9fe"},"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"purl":"pkg:github/greenlikeorange/knayi-myscript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenlikeorange%2Fknayi-myscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenlikeorange%2Fknayi-myscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenlikeorange%2Fknayi-myscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenlikeorange%2Fknayi-myscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/greenlikeorange","download_url":"https://codeload.github.com/greenlikeorange/knayi-myscript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenlikeorange%2Fknayi-myscript/sbom","scorecard":{"id":444605,"data":{"date":"2025-08-11","repo":{"name":"github.com/greenlikeorange/knayi-myscript","commit":"a5759b411003b2acd54dd74a4c62668f91e7c9fe"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2,"checks":[{"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":"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 1/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":"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":"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":"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":"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":"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":"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":"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":"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":-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 1 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":"75 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-22h7-7wwg-qmgg","Warn: Project is vulnerable to: GHSA-c429-5p7v-vgjp","Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-vh7m-p724-62c2","Warn: Project is vulnerable to: GHSA-r9p9-mrjm-926w","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-6x33-pw7p-hmpq","Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-593f-38f6-jp5m","Warn: Project is vulnerable to: GHSA-x2rg-q646-7m2v","Warn: Project is vulnerable to: GHSA-jgmv-j7ww-jx2x","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","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-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-cwx2-736x-mf6w","Warn: Project is vulnerable to: GHSA-v39p-96qg-c8rf","Warn: Project is vulnerable to: GHSA-8v63-cqqc-6r2c","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-h9rv-jmmf-4pgx","Warn: Project is vulnerable to: GHSA-hxcc-f52p-wc94","Warn: Project is vulnerable to: GHSA-vx3p-948g-6vhq","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-29xr-v42j-r956","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"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-19T06:23:01.973Z","repository_id":485233,"created_at":"2025-08-19T06:23:01.973Z","updated_at":"2025-08-19T06:23:01.973Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280431489,"owners_count":26329786,"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","status":"online","status_checked_at":"2025-10-22T02:00:06.515Z","response_time":63,"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":["burmese-nlp","fontconvert","fontdetect","myanmar","text-normalization","unicode","zawgyi"],"created_at":"2024-07-30T20:01:06.304Z","updated_at":"2025-10-22T11:49:02.091Z","avatar_url":"https://github.com/greenlikeorange.png","language":"JavaScript","readme":"Knayi Myanmar Script\n====================\n\n[![NPM version][npm-image]][npm-url]\n![][travis-url]\n[![][david-image]][david-url]\n![][dt-url]\n![][license-url]\n\n\u003e Standalone Myanmar languages js library, to build Myanmar **Unicode** standard web.\n\n## Announce on breaking API changes from 2.4.2 -\u003e 2.5.0\n- All throw Error are now become console.warn and console.error\n- If _content not_ found happens, #fontConvert, #spellingCheck, #syllBreak all return empty string\n- If _content not_ found happens, #fontDetect return fallback_font_type or 'en'\n- You can set silent by setting `knayi.setGlobalOptions({silent_mode: true})`\n\n## Node Version\n - Required node version \u003e= 4  \n Note: From version \u003e=2.3.0 build step will only support for node \u003e=6\n\n## Features\n - Detector (Unicode and Zawgyi)\n Detection now\n - Converter (Unicode and Zawgyi)\n - SyallBreak (Unicode and Zawgyi)\n - Spelling Check (Unicode and Zawgyi)\n - Truncate (Unicode and Zawgyi)\n - Normalization (Unicode only)\n\n## Installation\nUsing npm\n```bash\nnpm install knayi-myscript --save\n```\n\nUsing yarn\n```bash\nyarn add knayi-myscript\n```\n\nUsing CDN\n```html\n\u003cscript src=\"https://unpkg.com/knayi-myscript@latest/dist/knayi-myscript.min.js\"\u003e\u003c/script\u003e\n```\n\n## API\n|Method Name | Arguments | Return | Note |\n| --- | --- | --- | --- |\n| `fontDetect` | `content: String(require)`, \u003cbr\u003e`fallbackFontType:, options fontName(options)`, \u003cbr\u003e`options: Object(options)` | `String` | Font Detector, it will detect unicode/zawgyi of the **content** Text. If nothing is matched or possibility are equal, it will return as 'zawgyi' or specified font type in **fallbackFontType*, options* params. |\n| `fontConvert` | `content: String(require)`,\u003cbr\u003e`targetFontType: fontName(require)`,\u003cbr\u003e`orignalFontType: fontName(optional)`| `String` | Converting font to target font type. This method need spelling fix, so it gonna use **spellingFix** in default. **convertFrom** will be detect by **fontDetect** when you don't described.\u003chr\u003e `fontName` must be one of `unicode` or `zawgyi`. |\n| `syllBreak` | `content: String(require)`,\u003cbr\u003e`fontType: fontName(optional)`,\u003cbr\u003e`breakPoint: String(optional)` | `String` |To make systematic word break of Myanmar text. convertFrom will be detect by fontDetect when you don't described.\u003chr\u003e `fontName` must be one of `unicode` or `zawgyi`. |\n| `spellingFix` | `content: String(require)`,\u003cbr\u003e`fontType: fontName(optional)` | `String` | **convertFrom** will be detect by **fontDetect** when you don't described. It fix spelling on Myanmar Text.\u003chr\u003e `fontName` must be one of `unicode` or `zawgyi`. |\n| `truncate` | `content: String(require)`,\u003cbr\u003e`options: Object` | `String` | Like lodash.truncate, it truncate word syllable and space. Default truncate length is 30 and you can change it in `options.length` |\n| `normalize` | `content: String(require)` | `String` | Normalization solve some typing errors. Unlike `spellingFix`, this offer more appropriate way of doing so. But this function can only solve some level of normalization. |\n\n## Usage\n\n```javascript\n// ES5 Way\nvar knayi = require('knayi-myscript')\n\n// ES6 Way\nimport knayi from 'knayi-myscript'\n```\n\n## Example\n\n- **fontDetect(content [, fallbackFontType [, options]])**\n```javascript\nknayi.fontDetect('မဂၤလာပါ') // zawgyi\nknayi.fontDetect('မင်္ဂလာပါ') // unicode\n```\n\n- **fontConvert(content, targetFontType [, orignalFontType])**\n```javascript\nknayi.fontConvert('မဂၤလာပါ', 'unicode', 'zawgyi') // မင်္ဂလာပါ\nknayi.fontConvert('မဂၤလာပါ', 'unicode') // မင်္ဂလာပါ\n```\n\n- **syllBreak(content [, fontType [, breakWord]])**\n```javascript\nknayi.syllBreak('မင်္ဂလာပါ', null, '$$')\n// output: 'မင်္ဂလာ$$ပါ'\nknayi.syllBreak('မင်္ဂလာပါ')\n// output: 'မင်္ဂလာ\\u200bပါ'\n```\n\n- **spellingFix(content [, fontType])**  \n```javascript\nknayi.spellingFix('မင်္ဂလာာပါါ') \n// output: 'မင်္ဂလာပါ'\n```\n\n- **truncate(content [, options])**\n```javascript\nknayi.truncate('အာယုဝဍ်ဎနဆေးညွှန်းစာကို ဇလွန်ဈေးဘေးဗာဒံပင်ထက် အဓိဋ္ဌာန်လျက် ဂဃနဏဖတ်ခဲ့သည်။', { length: 30, omission: '...' });\n// output: \"အာယုဝဍ်ဎနဆေးညွှန်းစာကို ဈေး...\"\n```\n**options of truncate**\n- `length: Number` default is 30\n- `omission:String` default is '...'\n- `fontType: String` it automatically detect if it not specified\n\n- **normalize(content)**\n```javascript\nknayi.normalize('မိြုင်မိြုင်\\nဆိုင်ဆုိင်')\n// output: မြိုင်မြိုင်\\nဆိုင်ဆိုင်\n```\n\n## Using googlei18n/myanmartools in detector.js\n\nIn default, knayi use own logic font dector rules, but you can choose knayi to use googlei18n/myanmartools`  \nTo do that, set `use_myanmartools` option to true. By default `use_myanmartools` option is set to `false`.\n\nExample:: \n```javascript\n// Add options for single process\nknayi.fontDetect('မဂၤလာပါ', null, {use_myanmartools: true}) // this will use myanmartools\nknayi.fontDetect('မင်္ဂလာပါ') // this will use default\n\n// OR set for whole project\nknayi.setGlobalOptions({\n  detector: {\n    use_myanmartools: true\n  }\n})\n```\n\nYou can also set Probability threshold percentages of zawgyi predicting by\n`myanmartools_zg_threshold` as `[lower, higher]`. Which mean if predicting\nresult of myanmartools is \u003c 0.05 detector.js assume as **unicode** or \u003e 0.95\nit assume as **zawgyi**.\n\n```javascript\nknayi.fontDetect('မင်္ဂလာပါ', null, {\n  use_myanmartools: true,\n  myanmartools_zg_threshold: [0.05, 0.95]\n})\n```\n\n## Debugging of font converting\n\nVisit [http://greenlikeorange.github.io/knayi-myscript/#debug-mode](http://greenlikeorange.github.io/knayi-myscript/#debug-mode)\nand select text to track how converting happened in background.\n\n## Build\n\n - Required node \u003e=6  \n - `npm run build`  \n To build production run `webpack -p`  \n\n## License\n[MIT](./LICENSE)\n\n[npm-url]:https://npmjs.org/package/knayi-myscript\n[npm-image]:https://badge.fury.io/js/knayi-myscript.png\n[travis-url]:https://api.travis-ci.org/greenlikeorange/knayi-myscript.svg?branch=master\n[david-url]:https://david-dm.org/greenlikeorange/knayi-myscript\n[david-image]:https://david-dm.org/greenlikeorange/knayi-myscript.png\n[dt-url]:https://img.shields.io/npm/dt/knayi-myscript.svg\n[license-url]:https://img.shields.io/npm/l/knayi-myscript.svg\n","funding_links":[],"categories":["Libraries"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreenlikeorange%2Fknayi-myscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreenlikeorange%2Fknayi-myscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreenlikeorange%2Fknayi-myscript/lists"}