npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

artificialspoken

v0.0.2

Published

Artifical Spoken Language (人造語)

Downloads

1

Readme

Artifical Spoken Language (人造語)

中文:人造交談語言工具 - 翻譯與剖析

Install

$ npm install artificialspoken

BNF

We design 2 rules for any language. It's easy !

S = P* .+
P = a* (N+|V+)?

Example

File: aslTest.js

var spoken = require('../lib/artificialspoken')

spoken.analysis('小明 和 小英:N 一起吃蘋果。\n')
spoken.analysis('小明有5個蘋果,給了小華3個蘋果,請問他還剩幾個蘋果?\n')
spoken.analysis('黑黑的天,大大的風,爸爸去捕魚,為甚麼 還 不 回 家?\n')
spoken.analysis('John:N 與 瑪莉:N=Mary 是 一 對 戀人。\n')
spoken.analysis('風與日。風日爭,旅人至,脫者勝,風狂吹,人緊衣,風敗,日暖照,人脫衣,日勝。\n')
spoken.analysis('蘋果和牛奶很好吃。蘋果牛奶很好喝。很好喝的蘋果牛奶。')
spoken.analysis('好大的蘋果。')
spoken.analysis('John 和 Mary 一起吃蘋果。\n')
spoken.analysis('祭拜同一位神明, 至高無上:N=supreme 的天神《 法拉:N 》。')

Run

$ node mtTest.js
["小明","和","小英:N","一起","吃","蘋果","。","↓"]
 小明:N/ 和:V/ 小英:N:N/ 一起:a 吃:V/ 蘋果:N/ 。:. ↓:.
["_xiǎo_míng","and","_xiǎo_yīng","together","eat","apple","。","↓"]
=========================
["小明","有","5","個","蘋果",",","給","了","小華","3","個","蘋果",",","請問","他","還","剩","幾個","蘋果","?","↓"]
 小明:N/ 有:V/ 5:N/ 個:a 蘋果:N/ ,:.
 給:V/ 了:a 小華:N 3:N/ 個:a 蘋果:N/ ,:.
 請問:V/ 他:N/ 還:a 剩:V/ 幾個:a 蘋果:N/ ?:. ↓:.
["_xiǎo_míng","have","5","_gè","apple",",","give","_le","_xiǎo_huá","3","_gè","apple",",","Q","he","still","remain","several","apple","?","↓"]
=========================
["黑","黑","的","天",",","大大的","風",",","爸爸","去","捕魚",",","為甚麼","還","不","回","家","?","↓"]
 黑:a 黑:a 的:a 天:N/ ,:.
 大大的:N 風:N/ ,:.
 爸爸:N/ 去:V/ 捕魚:-/ ,:.
 為甚麼:V/ 還:a 不:a 回:V/ 家:N/ ?:. ↓:.
["black","black","_de","sky",",","big","wind",",","papa","go","fishing",",","why","still","no","back","home","?","↓"]
=========================
["John:N","與","瑪莉:N=Mary","是","一","對","戀人","。","↓"]
 John:N::N/ 與:V/ 瑪莉:N=Mary:N/ 是:V/ 一:a 對:a 戀人:N/ 。:. ↓:.
["John","and3","Mary","is","one","correct","lover","。","↓"]
=========================
["風","與","日","。","風","日","爭",",","旅人","至",",","脫","者","勝",",","風","狂","吹",",","人","緊","衣",",","風","敗",",","日","暖","照",",","人","脫","衣",",","日","勝","。","↓"]
 風:N/ 與:V/ 日:N/ 。:.
 風:N 日:N/ 爭:V/ ,:.
 旅人:N/ 至:V/ ,:.
 脫:V/ 者:N/ 勝:V/ ,:.
 風:N/ 狂:V 吹:V/ ,:.
 人:N/ 緊:V/ 衣:N/ ,:.
 風:N/ 敗:V/ ,:.
 日:N/ 暖:V 照:V/ ,:.
 人:N/ 脫:V/ 衣:N/ ,:.
 日:N/ 勝:V/ 。:. ↓:.
["wind","and3","sun","。","wind","sun","compete",",","traveler","come",",","takeOff","guy","win",",","wind","wild","blow",",","people","tight","cloth",",","wind","lose",",","sun","warm","shine",",","people","takeOff","cloth",",","sun","win","。","↓"]
=========================
["蘋果","和","牛奶","很","好吃","。","蘋果","牛奶","很","好","喝","。","很","好","喝","的","蘋果","牛奶","。"]
 蘋果:N/ 和:V/ 牛奶:N/ 很:a 好吃:V/ 。:.
 蘋果:N 牛奶:N/ 很:a 好:a 喝:V/ 。:.
 很:a 好:a 喝:V/ 的:a 蘋果:N 牛奶:N/ 。:.
["apple","and","milk","very","good to eat","。","apple","milk","very","good","drink","。","very","good","drink","_de","apple","milk","。"]
=========================
["好","大","的","蘋果","。"]
 好:a 大:a 的:a 蘋果:N/ 。:.
["good","big","_de","apple","。"]
=========================
["John","和","Mary","一起","吃","蘋果","。","↓"]
 John:N/ 和:V/ Mary:N/ 一起:a 吃:V/ 蘋果:N/ 。:. ↓:.
["John","and","Mary","together","eat","apple","。","↓"]
=========================
["祭","拜","同一","位","神","明",",","至高無上:N=supreme","的","天神","《","法拉:N","》","。"]
 祭:V 拜:V/ 同一:a 位:a 神:N/ 明:a/ ,:.
 至高無上:N=supreme:N/ 的:a 天神:N/ 《:a 法拉:N:N/ 》:a/ 。:.
["sacrifice","worship","same","_wèi","god","bright",",","supreme","_de","god","《","_fǎ_lā","》","。"]
=========================

Comment

You may get more information form the web site of Artificial Spoken Language.