Nihongo-Jouzu / nihongo-jouzu-backend

0 stars 0 forks source link

[FEATURE] Endpoint for memo game #23

Closed FilippoQuattrocchi closed 1 week ago

FilippoQuattrocchi commented 2 weeks ago

Endpoint for memo game The pair should be with japanese slang and forma way like: すげぇな match with すごいですね

Example:

{
  "data": [
    { "front": "Nihon", "back": "めっちゃいい!", "match": 15 },
    { "front": "Nihon", "back": "すげぇな!", "match": 2 },
    { "front": "Nihon", "back": "すごいですね。", "match": 1 },
    { "front": "Nihon", "back": "ありがと!", "match": 4 },
    { "front": "Nihon", "back": "ありがとう。", "match": 3 },
    { "front": "Nihon", "back": "わからないです。", "match": 13 },
    { "front": "Nihon", "back": "めんどいな。", "match": 10 },
    { "front": "Nihon", "back": "大変ですね。", "match": 9 },
    { "front": "Nihon", "back": "もうやめますね。", "match": 14 },
    { "front": "Nihon", "back": "やばい!", "match": 7 },
    { "front": "Nihon", "back": "面倒くさいです。", "match": 6 },
    { "front": "Nihon", "back": "やっとくよ。", "match": 12 },
    { "front": "Nihon", "back": "やっておきます。", "match": 11 },
    { "front": "Nihon", "back": "わからん。", "match": 5 },
    { "front": "Nihon", "back": "もうやめとくわ。", "match": 8 },
    { "front": "Nihon", "back": "とてもいいですね。", "match": 0 }
  ]
}

Match is the array index of the correct answer, like: ありがと! match with ありがとう that has index 4 ありがとう match with ありがと that has index 3

Example:

image (1)

ebisuG commented 2 weeks ago

Filippo's image is the pair of casual one and slang one both in Japanese.

ebisuG commented 1 week ago

@FilippoQuattrocchi I modified. The return data sample is following. As meaning, "奴ら (やつら)" corresponds to "彼ら(かれら)". "正直に言うと、... (しょうじきにいうと、...)" corresponds to "ぶっちゃけて言うと、... (ぶっちゃけていうと、...)".

{
    "data": [
        {
            "front": "J-Town",
            "back": "正直に言うと、... (しょうじきにいうと、...)",
            "match": 2
        },
        {
            "front": "J-Town",
            "back": "奴ら (やつら)",
            "match": 3
        },
        {
            "front": "J-Town",
            "back": "ぶっちゃけて言うと、... (ぶっちゃけていうと、...)",
            "match": 0
        },
        {
            "front": "J-Town",
            "back": "彼ら(かれら)",
            "match": 1
        },
        {
            "front": "J-Town",
            "back": "ウケる! (うける!)",
            "match": 12
        },
        {
            "front": "J-Town",
            "back": "最近どうですか?(さいきんどうですか)",
            "match": 7
        },
        {
            "front": "J-Town",
            "back": "えぐい ",
            "match": 10
        },
        {
            "front": "J-Town",
            "back": "調子どう? (ちょうしどう?)",
            "match": 5
        },
        {
            "front": "J-Town",
            "back": "はじめまして。よろしくお願いします。",
            "match": 13
        },
        {
            "front": "J-Town",
            "back": "うざい",
            "match": 14
        },
        {
            "front": "J-Town",
            "back": "ひどい ",
            "match": 6
        },
        {
            "front": "J-Town",
            "back": "めっちゃいい!",
            "match": 15
        },
        {
            "front": "J-Town",
            "back": "面白いですね。 (おもしろいですね。)",
            "match": 4
        },
        {
            "front": "J-Town",
            "back": "はじめまして!",
            "match": 8
        },
        {
            "front": "J-Town",
            "back": "煩わしい (わずらわしい)",
            "match": 9
        },
        {
            "front": "J-Town",
            "back": "とてもいいですね",
            "match": 11
        }
    ]
}
ebisuG commented 1 week ago

@FilippoQuattrocchi Now memo game works after your integration with frontend, I close this issue.