Skip to content

kyokucho1989/gorilla-translation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gorilla-translation

ウ?ウホホ ウ!ホッホ ホホゥウゥ ウ!ホホゥ

ウ?ホゥ ホッホウホ? ウホッウホウ ウホッウホー ウホッウホッ ホッホウーッ ウ?ホッホ ホホゥウホッ ホホゥウッホ ホッホウホ? ウ?ホゥ ホッホウゥ ホッホウーホ ホホゥウ? ホホッウホウ ホホゥホゥ ホホッホッホ ウ?ウーッ ウ?ホ! ホホッウホ? ホゥウッホ

Install

Install with npm:

$ npm install gorilla-translation

Usage

Japanese -> Gorilla

import Gorilla from "gorilla-translation";
console.log(Gorilla.convertToUho("こんにちは、わたしはゴリラです。"));

// Output: ウ?ホゥ ホホゥホゥ ホッホウホウ ホゥウ! ホッホウーッ ウホーウ! ホホゥウーッ ホゥウーッ ウ?ホ! ホッホウーッ ウ?ホッホ ホホゥウホッ ホホゥウッホ ホゥホ! ホゥウッホ ウホーウ?

Gorilla -> Japanese

import Gorilla from "gorilla-translation";
console.log(
  Gorilla.convertToHuman(
    "ホッホウーホ ホッホウホッ ホッホウホッ ウ?ウーッ ホホゥウホホ"
  )
);

// Output: ばななくれ

Keep in mind:

  • This translation service does not support Kanji, lowercase letters

  • After translating alphabets (both uppercase and lowercase) and Katakana into Gorilla language, the output will be a combination of uppercase letters and Hiragana

example:

Gorilla.convertToUho("バナナぁ 頂戴!");

/*
Error: 無効な入力です。ひらがな小文字(ゃゅょ以外)や、漢字や記号(!?・スペース)は含めないでください。
*/

console.log(Gorilla.convertToUho("バナナくれ"));

// Output: ホッホウーホ ホッホウホッ ホッホウホッ ウ?ウーッ ホホゥウホホ

console.log(
  Gorilla.convertToHuman(
    "ホッホウーホ ホッホウホッ ホッホウホッ ウ?ウーッ ホホゥウホホ"
  )
);

// Output: ばななくれ

When an Error Occurs

If you encounter the error a SyntaxError: Cannot use import statement outside a module, please add the following to your project's package.json. If you don't have a package.json, create one.

{
  "type": "module"
}

Releases

No releases published

Packages

No packages published