Skip to content

Latest commit

ย 

History

428 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

CircleCI PRs Welcome GitHub license All Contributors

How did the idea come about?

The idea came about through the meeting of friends who only knew each other through the internet, each one with its linguistic-cultural traits, we thought of creating an informal dictionary for the idiomatic expressions that each Brazilian region possessed, so the project was totally collaborative, bringing cultural diversity from each one of us, being able, to deepen in the our Brazilian's daily culture.

Projects using the dialects-service

๐Ÿ“ƒ API

All endpoints live under the URL https://dialetus-service.herokuapp.com and then generally follow the REST architecture.

All requests must be encoded as JSON with the Content-Type: application/json header. Most responses, including errors, are encoded exclusively as JSON as well.

Structure of dialect object

The dialect object in dialects folder has the following fields:

{
  "dialect": String,
  "meanings": Array<String>,
  "examples": Array<String>,
  "synonyms": Array<String> // (optional)
}

GET /regions

List all regions available with the total mapped dialects.

Request

$ curl https://dialetus-service.herokuapp.com/regions

Response

[{
  "name": "alagoanes",
  "total": 64
}, {
  "name": "amazones",
  "total": 9
}, {
  "name": "baianes",
  "total": 42
}, {
  "name": "carioques",
  "total": 14
}, {
  "name": "catarines",
  "total": 22
}, {
  "name": "cearences",
  "total": 10
}, {
  "name": "gauches",
  "total": 25
}, {
  "name": "lageanes",
  "total": 28
}, {
  "name": "maranhes",
  "total": 15
}, {
  "name": "mineires",
  "total": 26
}, {
  "name": "paraense",
  "total": 30
}, {
  "name": "paranes",
  "total": 53
}, {
  "name": "paulistes",
  "total": 16
}, {
  "name": "pernambuques",
  "total": 17
}, {
  "name": "piauies",
  "total": 30
}, {
  "name": "potiguares",
  "total": 35
}, {
  "name": "rondones",
  "total": 9
}, {
  "name": "sergipanes",
  "total": 11
}]

GET /regions/:region/dialects

List all dialects mapped.

Request

$ curl https://dialetus-service.herokuapp.com/regions/baianes/dialects

Response

[
  {
    "slug": "relaxe-mo-fiu",
    "dialect": "Relaxe mรด fiu.",
    "meanings": [
      "Sem problemas",
      "Fique tranquilo"
    ],
    "examples": [
      "ร” vei, relaxe mรด fiu todo nervoso ele."
    ]
  },
  {
    "slug": "e-bala",
    "dialect": "ร‰ bala!",
    "meanings": [
      "algo interessante",
      "massa"
    ],
    "examples": [
      "Que computador bala!"
    ]
  },
  {
    "slug": "comer-agua",
    "dialect": "Comer รกgua!",
    "meanings": [
      "Vodka",
      "Cerveja",
      "Qualquer bebida que contenha รกlcool"
    ],
    "examples": [
      "Vamo pro reg comer รกgua galera!"
    ]
  },
]

GET /regions/:region/dialects/:slug

Get a dialect by slug.

Request

$ curl https://dialetus-service.herokuapp.com/regions/baianes/dialects/relaxe-mo-fiu

Response

{
  "slug": "relaxe-mo-fiu",
  "dialect": "Relaxe mรด fiu.",
  "meanings": [
    "Sem problemas",
    "Fique tranquilo"
  ],
  "examples": [
    "ร” vei, relaxe mรด fiu todo nervoso ele."
  ]
}

GET /search?q={words}

Search the words in all dialects mapped.

Request

$ curl https://dialetus-service.herokuapp.com/search?q=regui

List of dialects

GET /dialect

GET /dialect

# /dialect/:region
GET /dialect/baianes
GET /dialect/mineires
GET /dialect/paranes
GET /dialect/carioques
GET /dialect/potiguares
GET /dialect/rondones
GET /dialect/cearences
GET /dialect/pernambuques
GET /dialect/piauies
GET /dialect/catarines
GET /dialect/paraense
GET /dialect/gauches

Response

{
  "baianes": [
    {
      "slug": "regui",
      "dialect": "Regui",
      "meanings": [
          "Reuniรฃo com os amigos",
          "Balada",
          "Festa"
      ],
      "examples": [
        "ร” mizera, bora pro regui logo vรก!"
      ]
    },
    {
      "slug": "num-to-comeno-regui",
      "dialect": "Num tรด comeno regui",
      "meanings": [
        "Nรฃo acreditar em algo",
        "Nรฃo se importar"
      ],
      "examples": [
        "Num tรด comeno regui nรฃo viu pae."
      ]
    }
  ]
}

Request

$ curl https://dialetus-service.herokuapp.com/search?q=Virado no cรฃo

Response

{
  "baianes": [{
    "slug": "virado-no-cao",
    "dialect": "Virado no cรฃo",
    "meanings": [
      "Mal humorado",
      "Aborrecido"
    ],
    "examples": [
      "Eu to virado no cรฃo, o primeiro que passar na minha frente vou rumalรกporra!"
    ]
  }]
}

Request

$ curl https://dialetus-service.herokuapp.com/search?q=baita

Response

{
  "gauches": [{
    "slug": "baita",
    "dialect": "Baita",
    "meanings": [
      "Grande",
      "Imenso"
    ],
    "examples": [
      "Bah tchรช, que baita de um problema tu arranjaste?!"
    ]
  }],
  "paranes": [{
    "slug": "baita",
    "dialect": "Baita",
    "meanings": [
      "grande",
      "enorme",
      "de grandes proporรงรตes"
    ],
    "examples": [
      "Mas que baita susto tu me deu"
    ]
  }]
}

GET /flags

List all flags of a dialects available.

Request

$ curl https://dialetus-service.herokuapp.com/flags

Response

{
    "flags": [
        {
            "key": "alagoanes",
            "url": "https://mydomain.com.br/database/flags/alagoanes.svg"
        },
        {
            "key": "amazones",
            "url": "https://mydomain.com.br/database/flags/amazones.svg"
        },
        {
            "key": "baianes",
            "url": "https://mydomain.com.br/database/flags/baianes.svg"
        },
        {
            "key": "carioques",
            "url": "https://mydomain.com.br/database/flags/carioques.svg"
        },
        {
            "key": "catarines",
            "url": "https://mydomain.com.br/database/flags/catarines.svg"
        },
        {
            "key": "cearences",
            "url": "https://mydomain.com.br/database/flags/cearences.svg"
        },
        {
            "key": "gauches",
            "url": "https://mydomain.com.br/database/flags/gauches.svg"
        },
        {
            "key": "lageanes",
            "url": "https://mydomain.com.br/database/flags/lageanes.svg"
        },
        {
            "key": "maranhes",
            "url": "https://mydomain.com.br/database/flags/maranhes.svg"
        },
        {
            "key": "mineires",
            "url": "https://mydomain.com.br/database/flags/mineires.svg"
        },
        {
            "key": "paraense",
            "url": "https://mydomain.com.br/database/flags/paraense.svg"
        },
        {
            "key": "paranes",
            "url": "https://mydomain.com.br/database/flags/paranes.svg"
        },
        {
            "key": "paulistes",
            "url": "https://mydomain.com.br/database/flags/paulistes.svg"
        },
        {
            "key": "pernambuques",
            "url": "https://mydomain.com.br/database/flags/pernambuques.svg"
        },
        {
            "key": "piauies",
            "url": "https://mydomain.com.br/database/flags/piauies.svg"
        },
        {
            "key": "potiguares",
            "url": "https://mydomain.com.br/database/flags/potiguares.svg"
        },
        {
            "key": "rondones",
            "url": "https://mydomain.com.br/database/flags/rondones.svg"
        },
        {
            "key": "sergipanes",
            "url": "https://mydomain.com.br/database/flags/sergipanes.svg"
        }
    ]
}

GET /flags/:key

Get a dialect flag by key.

Request

$ curl https://dialetus-service.herokuapp.com/flags/baianes

Response

{
    "flag": {
        "key": "baianes",
        "url": "https://mydomain.com.br/database/flags/baianes.svg"
    }
}

Contribute ๐Ÿ•

01. Install dependencies

$ yarn

02. Create configs

Create a .env file at the root of the project. Make sure you follow the .env.example file as a guide.

03. Run project

$ yarn dev

04. Learn more in the Contributing guide

Please take a look at the contributing guide.

Respect earns Respect ๐Ÿ‘

Please respect our Code of Conduct, in short:

  • Using welcoming and inclusive language
  • Being respectful of differing viewpoints and experiences
  • Gracefully accepting constructive criticism
  • Focusing on what is best for the community
  • Showing empathy towards other community members

Authors ๐Ÿ˜Ž

Maintainers

Contributors ๐ŸŽ‰

Thanks goes out to all these wonderful people (emoji key):


Marcus Silva

๐Ÿ’ป ๐Ÿ“– ๐Ÿ‘€

Angelmรกrio Santana

๐Ÿ’ป ๐Ÿ“– ๐Ÿ‘€

Rodolfo Silva

๐Ÿ’ป ๐Ÿ“– ๐Ÿ‘€

Bruno Pulis

๐Ÿ’ป

Wellington Mitrut

๐Ÿ’ป

Diego Ramos

๐Ÿ’ป

Caio Alcรขntara

๐Ÿ’ป

Lucas Farias

๐Ÿ’ป

Higor Morais

๐Ÿ’ป

Medson Mendes

๐Ÿ’ป

Randั•on Oliveira

๐Ÿ’ป

Murillo de Miranda Pereira

๐Ÿ’ป

Rafael Nunes

๐Ÿ’ป

Will Mendes

๐Ÿ’ป

kathleenrego

๐Ÿ’ป

Jader

๐Ÿ’ป

Rodolfo Candido

๐Ÿ’ป

Jefferson Moura

๐Ÿ’ป

Raphael Amorim

๐Ÿ’ป

Adriano Canofre

๐Ÿ’ป

Maurรญcio Coelho

๐Ÿ’ป

Marcela Barella

๐Ÿ’ป

Matheus Monte

๐Ÿ’ป

Gabriel Kalani

๐Ÿ’ป

Ruan Kaylo

๐Ÿ’ป

Thiago Guimarรฃes

๐Ÿ’ป

Welkson Ramos

๐Ÿ’ป

Mateus Malaquias

๐Ÿ’ป

License

Dialetus is released under the MIT license.

Copyright ยฉ 2019.

Releases

Packages

Used by

Contributors

Languages