Giter VIP home page Giter VIP logo

textlint-rule-numeral-systems's Introduction

textlint-rule-numeral-systems Actions Status: test textlint rule

Unify the usage of Arabic, Arabic-Indic and Farsi numbers in a single text

Fixable

textlint rule

textlint --rule numeral-systems --fix README.md

Example

In ١٧٩٩, during Napoleon's campaign in Egypt, a French soldier discovered the Rosetta Stone near the town of Rosetta (modern-day Rashid). The number ۱۹۶ comes into play as it was the year 196 BCE when the decree inscribed on the Rosetta Stone was written. This decree was issued by Ptolemy V, and its purpose was to establish the divine cult of the king.

In 1799, during Napoleon's campaign in Egypt, a French soldier discovered the Rosetta Stone near the town of Rosetta (modern-day Rashid). The number 196 comes into play as it was the year 196 BCE when the decree inscribed on the Rosetta Stone was written. This decree was issued by Ptolemy V, and its purpose was to establish the divine cult of the king.

Install

Install with npm:

npm install textlint-rule-numeral-systems

Usage

Via .textlintrc.json(Recommended)

{
    "rules": {
        "numeral-systems": {
          "default_numbers" : "arabic"  // can be: 'arabic', 'indic' or 'persian
        }
    }
}

Via CLI

textlint --rule numeral-systems README.md

Build

Builds source codes for publish to the lib folder. You can write ES2015+ source codes in src/ folder.

npm run build

Tests

Run test code in test folder. Test textlint rule by textlint-tester.

npm test

License

MIT © aborazmeh

textlint-rule-numeral-systems's People

Contributors

aborazmeh avatar

Watchers

 avatar

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.