プレイ日記
KuroHana elijahpwg
How do i make it if like INPUT Q$ and then it sees if it says "Hi" but it could also check like... i guess like google translate? so if i typed in watashiha it would say i am or if i typed in watashiha ringo it would say i am apple... like it detects the words and other words and them together without having to make every single phrase possible?
3そうだね
プレイ済み
返信[1]
親投稿
Aaron Krondelo
I'm not sure exactly what you are asking, it sounds like you want a text parser. Which is either impossible in BASIC or would take immense coding. However, you can do. INPUT "Something";Q$ IF Q$=="Hi" goto @Hi IF Q$=="Watashiha" goto @Iam then you can program what you want in each loop, you just have to do a lot of hard coding. Hope that helps.
0そうだね
プレイ済み
返信[2]
親投稿
Stewart segludian
So, are you just trying to read a full line of text? If so you will want to look at linput. example: linput s$ Of course breakimg that up into individual words would be your job. In your case you probably want to break things up when you switch between alphabetic characters and white space (spaces, tab, return, etc.). Translation is another can of worms, search/replace isn't enough. Good luck.
0そうだね
プレイ済み
返信[3]
親投稿
L. Lohadaa
Not to rain on your parade but a translator is (I'm being subjective here) the worst idea. So if you're translating watashiha (or watashiwa) to "I am", what if it's followed by a verb/adjective instead of a noun? Watashiha kirai desu is NOT "I am hate", but "I hate it". Watashiha tabemashita is NOT "I am ate", but "I ate". I'd say not just a can, but a MOUNTAIN of worms.
1そうだね
未プレイ
返信[4]
親投稿
BBB agaaron
For as simple as Google Translate is to use, the code used to power it is anything but simple to replicate.
0そうだね
プレイ済み