Coder Social home page Coder Social logo

arshadkazmi42 / ak-phrase.js Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 9.0 188 KB

JS - Generates permutations of all sentences, using list of words :tada:

License: MIT License

JavaScript 100.00%
sentence phrase generator permutations sentence-permutations sentence-generator phrase-generator words-combination javascript

ak-phrase.js's Introduction

Hi ๐Ÿ‘‹ I am Arshad

Backend Developer & Opensource Contributor

๐ŸŒย  I'm based in Berlin, Germany
๐Ÿ–ฅ๏ธย  See my portfolio at arshadkazmi42.github.io
โœ‰๏ธย  You can contact me at [email protected]

Socials

Skills

Javascript NodeJS Python PHP Java Android React Express Lavarel

GraphQL bash

MongoDB MySQL PostgreSQL redis

aws docker android studio postman

Photoshop Sketch

Badges

My GitHub Stats

GitHub Commits Graph

Top Languages

ak-phrase.js's People

Contributors

1point7point4 avatar abdelrahmanmanz avatar alvinvaldez avatar aneal-sharma avatar arshadkazmi42 avatar aryans1319 avatar bensonmachine avatar cdrani avatar dependabot[bot] avatar jtertil avatar marielenna avatar nilathedragon avatar rbirchtree avatar roshanadh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ak-phrase.js's Issues

Add license badge

[![LICENSE](https://img.shields.io/npm/l/ak-phrase.svg)](https://github.com/arshadkazmi42/ak-phrase.js/LICENSE)

add above line in README.md with other badges

Add description in package.json

Add description in package.json, which will be shown as short discription on npm

Generates all the permutations of sentences from words in a 2D array.

Add build badge

Add build badge at the top in readme.md
This is the url for build badge

https://api.travis-ci.org/arshadkazmi42/ak-phrase.js.svg?branch=master

update package name in readme

The readme labels the wrong package name. The package name is ak-phrase not ak-phrase.js. You can check by running:
npm info ak-phrase.js vs npm info ak-phrase.

- $ npm install ak-phrasae.js
+ $ npm install ak-phrase

and

- const sentenceGenerator = require('ak-phrase.js');
+ const sentenceGenerator = require('ak-phrase');

This might also be a good chance to update the repo name to reflect the npm package name. Updating the docs count as a patch update: 1.0.3 -> 1.0.4

Add downloads badge

Add below downloads badge in readme with build badge

[![NPM Downloads](https://img.shields.io/npm/dt/ak-phrase.svg)](https://www.npmjs.com/package/ak-phrase)

Add npm version badge

[![NPM Version](https://img.shields.io/npm/v/ak-phrase.svg)](https://www.npmjs.com/package/ak-phrase)

Add above line in readme.md with other badges

Add LICENSE

Add GNU General Public License v3.0 license to the library

Add Contributors avatar

Add Contriutors avatar at bottom of the README.md file with title Contributors

Add the below code below the Contributors title

[![](https://sourcerer.io/fame/arshadkazmi42/arshadkazmi42/ak-phrase.js/images/0)](https://sourcerer.io/fame/arshadkazmi42/arshadkazmi42/ak-phrase.js/links/0)[![](https://sourcerer.io/fame/arshadkazmi42/arshadkazmi42/ak-phrase.js/images/1)](https://sourcerer.io/fame/arshadkazmi42/arshadkazmi42/ak-phrase.js/links/1)[![](https://sourcerer.io/fame/arshadkazmi42/arshadkazmi42/ak-phrase.js/images/2)](https://sourcerer.io/fame/arshadkazmi42/arshadkazmi42/ak-phrase.js/links/2)[![](https://sourcerer.io/fame/arshadkazmi42/arshadkazmi42/ak-phrase.js/images/3)](https://sourcerer.io/fame/arshadkazmi42/arshadkazmi42/ak-phrase.js/links/3)[![](https://sourcerer.io/fame/arshadkazmi42/arshadkazmi42/ak-phrase.js/images/4)](https://sourcerer.io/fame/arshadkazmi42/arshadkazmi42/ak-phrase.js/links/4)[![](https://sourcerer.io/fame/arshadkazmi42/arshadkazmi42/ak-phrase.js/images/5)](https://sourcerer.io/fame/arshadkazmi42/arshadkazmi42/ak-phrase.js/links/5)[![](https://sourcerer.io/fame/arshadkazmi42/arshadkazmi42/ak-phrase.js/images/6)](https://sourcerer.io/fame/arshadkazmi42/arshadkazmi42/ak-phrase.js/links/6)[![](https://sourcerer.io/fame/arshadkazmi42/arshadkazmi42/ak-phrase.js/images/7)](https://sourcerer.io/fame/arshadkazmi42/arshadkazmi42/ak-phrase.js/links/7)

add badges

Create first timers issues for adding badges

Add commit badge

[![Commit](https://img.shields.io/github/last-commit/arshadkazmi42/ak-phrase.js.svg)](https://github.com/arshadkazmi42/ak-phrase.js/commits/master)

adds commit badge

add eslint

We need to add eslint config to standardise the coding style

is generateSentencePermutations supposed to be exposed?

Noticed that generateSentences is not exported by default. generateSentencePermutations is already incorporated into generateSentences, thus I don't know if users are going to use it, especially as it is not documented in the readme. If there's no reason for users to use generateSentencePermutations function, then generateSentences can be the sole function exported by default. This would also require a change to the readme in how generateSentences is imported.

Add tests

Add tests to test the functionality

obese npm package

The packages includes every single file/folder in the repo. Packages should be as lightweight as possible. In this case, the only files that should be packed and sent to npm registry is the index.js, license, readme, and package.json.
In package.json add:

"files": ["index.js"]

The other 3 files will be automatically packed by npm.

Contribution guide modify

I want to point out that this readme is quite limiting because not all contributions have to be in the form of actual code, but also documentation, finding bugs, etc. Also I don't know about some of the steps:

  1. git add --all. This is dependent on how extensive the .gitignore file is. I think it should say only add the actual files you purposely created or modified by having them check with git status first.
  2. I think it would also be great if the doc included setting up an upstream from their local copy to this remote. ref https://akrabat.com/the-beginners-guide-to-contributing-to-a-github-project/.
  3. This is a wonderful example of a contributing guide: https://github.com/ollelauribostrom/rebus

This should be opened in it's own issue though.

Originally posted by @cdrani in #62 (comment)

Add PR Template

Add PULL_REQUEST_TEMPLATE.md file with below content

Fixes #

Remove unused dependencies

Remove all unused dependencies,
I think for this we are only using mocha and chai as devDependencies for tests.
All other dependencies can be removed from package.json

replace npm with yarn in CONTRIBUTING.md

Run below command to verify all tests are passing
npm install (This will install all required dependencies)
npm test

I suppose this is meant to use yarn from the yarn.lock file.

Update README

Update readme with usage details and brief about library

Add repo size badge

[![Github Repo Size](https://img.shields.io/github/repo-size/arshadkazmi42/ak-phrase.js.svg)](https://github.com/arshadkazmi42/ak-phrase.js)

Add the above line in readme with other badges

Add contributors badge

Add below code with other badges code in README

[![Contributors](https://img.shields.io/github/contributors/arshadkazmi42/ak-phrase.js.svg)](https://github.com/arshadkazmi42/ak-phrase.js/graphs/contributors)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.