How to Write a Program “in Japanese” – Nadeshiko V3 Tutorial

How to Write a Program “in Japanese” – Nadeshiko V3 Tutorial

 

プログラミングとえば英語えいご命令めいれい記述きじゅつするのが常識じょうしきです。
When it comes to programming, it’s common sense to write commands in English.

あるいはScratchのようにレゴのようなブロックをわせるだけでプログラミングが出来できるものもあります。
Or, there are some, like Scratch, that can be programmed by simply putting LEGO-like blocks together.

しかし、プログラミング言語げんごのなでしこはなんと「日本語にほんごで」プログラムを開発かいはつ可能かのうです。
However, a programming language, Nadeshiko, allows you to develop programs “in Japanese”.

今年ことし、Scratchとなでしこは中学生ちゅうがくせいけの技術ぎじゅつ教科書きょうかしょ採用さいようされました。
This year, Scratch and Nadeshiko have been included in a technology textbook for junior high school students.

日本にほん中学生ちゅうがくせいたちは両方りょうほう言語げんご、またはどちらかを授業じゅぎょう選択せんたくして学習がくしゅうすることになるようです。
Japanese junior high school students may choose to study both languages or one of them in class.

なでしこは、おな作者さくしゃが2001ねんごろ公開こうかいしていたひまわりという日本語にほんごプログラミング言語げんご改良かいりょうした言語げんごで、2004ねん最初さいしょのバージョンが公開こうかいされました。
Nadeshiko is an improved version of Himawari, a Japanese programming language released in 2001 by the same author, and the first version was released in 2004.

Windows/Mac/Linux/iPhone/Androidなど、多数たすうのプラットフォームをサポートしており、WEBブラウザじょうでも動作どうさ可能かのうです。
It supports Windows, Mac, Linux, iPhone, Android and many other platforms, and can be run on web browsers, too.

この記事きじでは、なでしこV3のプログラムのつくかた紹介しょうかいするほか、それ以外いがい日本語にほんごプログラミング言語げんごすう種類しゅるい紹介しょうかいします。
This article introduces how to make Nadeshiko V3 programs, as well as several other Japanese programming languages.

 

命令めいれいordercommanddecreedirective(software) instructionstatement
記述きじゅつdescriptionaccount
常識じょうしきcommon sensegood sensecommon knowledgegeneral knowledgecommon practiceaccepted practicesocial etiquette
あるいはoreither … ormaybeperhapspossiblysome … and others …sometimes … and at other times …
組み合わせるくみあわせるto combineto join togetherto join upto dovetail together
開発かいはつdevelopmentexploitation
向けむけintended for …oriented towards …aimed at …
技術ぎじゅつtechnologyengineeringtechniqueskillartcraft
教科書きょうかしょtextbookcoursebookschoolbook
採用さいようuseadoptionacceptanceappointmentemploymentengagementrecruitment
両方りょうほうone sideone partycounterpartthe other sidethe other partyone of a pairfellowmate
どちらかeitherone (of the two)
授業じゅぎょうlessonclass workteachinginstruction
選択せんたくselectionchoiceoption
学習がくしゅうstudylearningtutorial
同じおなじsameidenticalequaluniformequivalentsimilarcommon (origin)changelessalikeanywayanyhowin either case
作者さくしゃcreator (of a work)authorwriterartistcomposerplaywrightdramatist
ころ(approximate) timearoundabouttowardsuitable time (or condition)time of yearseason
公開こうかいopening to the publicmaking available to the publicputting on displayexhibitingshowing (play, movie, etc.)holding (interview, etc.)openpublic
ひまわりsunflower (Helianthus annuus)
改良かいりょうimprovementreform
最初さいしょbeginningoutsetfirstonset
バージョンversion
多数たすうlarge number (of)manymajority
プラットフォームplatform
サポートsupport
ブラウザ(web) browser
動作どうさactionmovementsmotionsbearingbehaviourbehaviorexecutionactuationoperationmanners
記事きじarticlenews storyreportaccount
作り方つくりかたstyle of buildingconstructionworkmanshipway of makingrecipehow to grow (something)
紹介しょうかいintroductionpresentationreferrallisting
以外いがいwith the exception ofexcepting
数種類すうしゅるいa few types

 

This is the textbook that has Scratch and Nadeshiko tutorials.

 

In this book, Japanese students seem to learn how to develop a websocket chat app using Nadesiko.

You can see the full introduction for the textbook below:
https://www.kyoiku-tosho.co.jp/b_data/kateika/r3_gijutsu_naiyoukaisetsu.pdf

The following website gives you a websocket chat app tutorial almost a bit similar to this junior high textbook’s chat app. Honestly, it was a very complicated program than I thought!
https://news.mynavi.jp/article/nadeshiko-51/

 

[ To whom may be interested in Nadesiko ]

Nadeshiko has three versions:
V1 (Delphi-based), V2 (C#-based), and V3 (JavaScript/Node.js-based)

Nadeshiko V1 and V2 are the desktop versions, and V3 is the web/app version.
V3 is the best for your first try. Since V2 has been discontinued and V3 can be developed on your browser. However, V3 is still in development and has a bit less functionalities compared to V1, so currently V1 seems to be the best choice for hardcore developers.

 

Actually, there are some other Japanese programming languages, too!

 

[ Japanese Programming Languages ]

Nadeshiko (なでしこ)
Wikipedia: link
URL: https://nadesi.com/top/
Download: V1   V3 (Non-Japanese windows needs to install Locale Emulator)
Tutorial: link
V3 Online Editor: link
Code Library by Users:
link

Nadesiko is released in 2004 and based on Himawari developed in 2001.
Himawari used to be a quite well-known Japanese programming language made by the same programmer as Nadeshiko, but he released the better, faster, and easier language: Nadesiko. Nadeshiko has some modern features such as machine-learning features, too.
For website-purposes, Nadeshiko V3 can also compile your Nadeshiko codes to JavaScript so you can let them run on your website without any overheads (Only if you mind the executing speed for your website, though. Normally, you can just link to Nadeshiko files and that’s all).

 

Proderu (プロデル)
Wikipedia: link
URL: https://rdr.utopiat.net/
Tutorial: link

Proderu is released in 2008 and based on TTSneo developed in 2000
TTSneo was a Japanese programming language just like Himawari, but the same author released the better and faster Japanese programming language in 2008, and that was Proderu. Almost the similar story Nadeshiko had, right?

 

Dolittle (ドリトル)
Wikipedia: link
URL: https://dolittle.eplang.jp/
Tutorial: link

Dolittle is an educational-purpose Japanese programming language developed by Osaka Electro-Communication University. The language is similar to Nadesiko. Dolittle has multiple versions to make a program. As for the block-based version, it has a Nedesiko-like code-based language and Scratch-like GUI-based visual language at the same time, and you can switch anytime clicking the tab just like this.


 

The following codes are my Nadeshiko programs for you! Hope it saves your day!

Many Oppai!
Loops 10 times.  If it’s the 3rd or 5th looping count, it prints “Big Boobs! (大きなおっぱい!)”:
(Go to the V3 editor and paste the code to run):

Nを1から10まで繰り返す
 もし、(N=3)または(N=5)ならば「大きなおっぱい!」と表示。
 違えば、もし、N<5ならば「小さいが美しいおっぱいだ」と表示
 違えば、「やわらかいおっぱいです!」を表示。
ここまで。

The code above is the same to the following JavaScript code:

for ( var N=1; N <= 10; N++ ) {
 if ( N==3 || N==5 ) console.log(‘大きなおっぱい!’)
 else if ( N < 5 ) console.log(‘小さいが美しいおっぱいだ’)
 else console.log(‘やわらかいおっぱいです!’)
}

Smart Oppai Speaker!
You can force your oppai (boobs) to speak what you commanded! :
(Go to the V3 editor and paste the code to run):

A=「あなたのおっぱいに話させたいことを入力してください」と尋ねる。
{“声高”:0, “速度”:1.0}に話者詳細設定。
「{A}」と話す。
「おっぱいはあなたに言いました。”{A}”…」を表示。


You can actually hear her voice if you try the code:

Google Cat-image Search!
You can make a custom search engine! :
(Go to the V3 editor and paste the code to run):

改行作成
内容エディタ=「猫 画像」のエディタ作成
検索ボタン=「Google 画像検索」のボタン作成
検索ボタンをクリック時には
言葉=内容エディタからテキスト取得
URL=「https://www.google.com/search?tbm=isch&q={言葉}」
URLにブラウザ移動
ここまで


↑It googles keyword images!

Okay, I also made a glossary for you so you can learn the meanings of my codes!

繰り返すくりかえすto repeatto do something over again
大きなおおきなbiglargegreat
おっぱいbreastsboobiestitsbreast milk
表示ひょうじindicationexpressionshowingmanifestationdemonstrationdisplaydisplayingrepresentation(copyright) attribution
違うちがうto differ (from)to varyto not be in the usual conditionto not match the correct (answer, etc.)to be different from promisedisn’t it?wasn’t it?
小さいちいさいsmalllittletinyslightbelow average (in degree, amount, etc.)minorsmalllow (e.g. sound)soft (e.g. voice)unimportantpettyinsignificanttriflingtrivialyoungjuvenile
美しいうつくしいbeautifulprettylovelysweetpure (heart, friendship, etc.)
やわらかいsofttenderpliantsupplelimberlimpgentlemildmellowinformallightflexible (e.g. thinking)
話すはなすto talkto speakto converseto chatto tellto explainto narrateto mentionto describeto discussto speak (a language)
入力にゅうりょくinput(data) entry
くださいplease (give me)please (do for me)
尋ねるたずねるto askto enquireto inquireto searchto look forto look intoto investigate
声の高さこえのたかさpitch (of a voice)
速度そくどspeedvelocitypaceratevelocity
話者わしゃspeakernarrator
詳細しょうさいdetailsparticularsspecificsdetailedspecificminuteclose-up view (of a digitally displayed map)zoomed-in view
設定せっていestablishmentcreationposing (a problem)setting (movie, novel, etc.)sceneoptions settingpreference settingsconfigurationsetup
言ういうto sayto utterto declareto nameto callto go (e.g. “the alarm went ping”)to make a noise
改行かいぎょうnew linenew paragraphnewline (e.g. LF, CR, CRLF)
作成さくせいdrawing up (e.g. legal document, contract, will, etc.)preparingwritingframingmakingproducingcreatingcreation
内容ないようcontentscontentsubstancematterdetailimport
エディタeditor
ねこcat (esp. the domestic cat, Felis catus)shamisengeishawheelbarrowclay bed-warmerbottom
画像がぞうimagepictureportrait
検索けんさくlooking up (e.g. a word in a dictionary)retrieval (e.g. data)searching forreferring to
クリックclick
言葉ことばlanguagedialectwordwordsphrasetermexpressionremarkspeech(manner of) speakinglearning to speaklanguage acquisition
テキストtexttextbook
取得しゅとくworthmeritvaluegood pointredeeming featuresaving grace
ブラウザ(web) browser
移動いどうmovementtransfermigrationremovaltravelmobilemovingtravelingtravellingroving

 

If you’re a youtuber, how about making a video using one of those Japanese programming languages?
Please please link to this article if you do that, hahaha. ^q^

Leave a Reply