Skip to content

Commit

Permalink
feat(package/trend): expressions dataset and structure
Browse files Browse the repository at this point in the history
  • Loading branch information
louistiti committed Mar 24, 2019
1 parent ca1c237 commit f406a5a
Show file tree
Hide file tree
Showing 17 changed files with 109 additions and 0 deletions.
21 changes: 21 additions & 0 deletions packages/trend/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Trend Package

The trend package contains modules related to trends.

## Modules

### GitHub

WIP...

#### Usage

WIP...

### Product Hunt

WIP...

#### Usage

WIP...
Empty file added packages/trend/__init__.py
Empty file.
Empty file added packages/trend/config/.gitkeep
Empty file.
8 changes: 8 additions & 0 deletions packages/trend/config/config.sample.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"github": {
"options": {}
},
"producthunt": {
"options": {}
}
}
Empty file added packages/trend/data/.gitkeep
Empty file.
Empty file.
6 changes: 6 additions & 0 deletions packages/trend/data/answers/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"github": {
},
"producthunt": {
}
}
6 changes: 6 additions & 0 deletions packages/trend/data/answers/fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"github": {
},
"producthunt": {
}
}
Empty file added packages/trend/data/db/.gitkeep
Empty file.
Empty file.
19 changes: 19 additions & 0 deletions packages/trend/data/expressions/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"github": [
"What are the trends on GitHub?",
"Give me the GitHub trends",
"What's trending on GitHub?",
"What are the trends on GH?",
"Give me the GH trends",
"What's trending on GH?"
],
"producthunt": [
"What are the trends on Product Hunt?",
"Give me the Product Hunt trends",
"What's trending on Product Hunt?",
"What are the trends on PH?",
"Give me the PH trends",
"What's trending on PH?",
"What's trending on ProductHunt?"
]
}
18 changes: 18 additions & 0 deletions packages/trend/data/expressions/fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"github": [
"Quelles sont les tendances sur GitHub ?",
"Donne-moi les tendances GitHub",
"Qu'est-ce qu'il y a en tendance sur GitHub ?",
"Quelles sont les tendances sur GH ?",
"Donne-moi les tendances GH",
"Qu'est-ce qu'il y a en tendance sur GH ?"
],
"producthunt": [
"Quelles sont les tendances sur Product Hunt ?",
"Donne-moi les tendances Product Hunt",
"Qu'est-ce qu'il y a en tendance sur Product Hunt ?",
"Quelles sont les tendances sur PH ?",
"Donne-moi les tendances PH",
"Qu'est-ce qu'il y a en tendance sur PH ?"
]
}
10 changes: 10 additions & 0 deletions packages/trend/github.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env python
# -*- coding:utf-8 -*-

import requests
import utils

def github(string, entities):
"""WIP..."""

return utils.output('end', 'done')
10 changes: 10 additions & 0 deletions packages/trend/producthunt.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env python
# -*- coding:utf-8 -*-

import requests
import utils

def producthunt(string, entities):
"""WIP..."""

return utils.output('end', 'done')
5 changes: 5 additions & 0 deletions packages/trend/test/github.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict'

describe('trend:github', async () => {

})
5 changes: 5 additions & 0 deletions packages/trend/test/producthunt.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict'

describe('trend:producthunt', async () => {

})
1 change: 1 addition & 0 deletions packages/trend/version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0.0

0 comments on commit f406a5a

Please sign in to comment.