GithubHelp home page GithubHelp logo

bullhorn / chomsky Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 0.0 497 KB

[DEPRECATED] Moved into NovoElements (https://github.com/bullhorn/novo-elements)

License: MIT License

JavaScript 0.21% TypeScript 99.79%

chomsky's People

Contributors

awubullhorn avatar ccarbonellbh avatar jgodi avatar jhoac avatar jlrutledge-bh avatar krsween avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chomsky's Issues

Problem with unused library functions

My name is Hernan; with a group of colleagues we are conducting a research about unused code present in dependencies of JavaScript projects. We call this functions, UFF (Unused foreign functions). We found that in most projects there exist a great amount of UFF that are being included in the final bundle.

In the case of chomsky (v 1.0.8) our tools detected approximately 1000 unused function in the dependencies (systemjs, when, rxjs, symbol-observable, numbro, moment-timezone, moment). Removing those functions, the size of chomsky bundled could be reduced at least 38% (All tests passed). I’m attaching the reduced version of your project.
bundle(optimized).txt

I’ll be very grateful if you can answer me the following questions:
-Did you were aware of the existence of these unused functions in your projects?
-Do you think that this is a problem?

Thanks in advance.

Cheers,

Caching dynamic values

It would be nice if once-specified dynamic values used in interpolation were cached. Then if the key was re-used with no value added it would recall the first stored value.

Extend chomsky to handle grammatical case

In some languages (e.g. German), nouns are inflected based on three characteristics: number, gender, and case. We should expand chomsky to handle all three characteristics. This should also include the inflection of words that depend on the inflected word (e.g. adjectives).

Example phrase:
"for this customer"

Uninflected (and gramatically incorrect) German translation:
"für diese Kunde"

"Für" takes a noun in the accusative case. "Kunden" is the accusative singular form of Kunde (a masculine noun). Also, in this phrase "diese" depends on Kunde and must agree in gender, number, and case (here singular, masculine, accusative).

Inflected, correct translation:
"für diesen Kunden"

The complexity is easiest to summarize via the declension of the adjective:
https://en.wiktionary.org/wiki/diese

Note that in German the plural forms are identical for all genders, but are still inflected based on case.

Dynamically format lists

Return a properly localized list of words when passing in an array of like words. Chomsky would handle the order, the delimiter, and (perhaps optionally) initial and/or final conjunctions.

In English:
[red, blue, green] => red, blue, green

In another language, the comma could be a different character, and there can be different rules for initial, penultimate, and terminal punctuation.

Support for other Currency Codes when using different locale

The following don't work when not in the same locale as the currency.

abbrev full symbol
PLN Polish Zloty
CHF Swiss Franc CHF
AED United Arab Emirates Dirham AED
SGD Singapore Dollar $, S$
HUF Hungarian Forint Ft
DKK Danish Krone kr.
SEK Swedish Krona kr
NOK Norwegian Krone kr
ZAR South African Rand R

The issue is with then INTL libary only seems to support true currency symbols (ie. single character) from here:
http://www.fileformat.info/info/unicode/category/Sc/list.htm

Spec: http://www.ecma-international.org/ecma-402/1.0/#sec-6.3

We should create an override system for these scenarios to check if the currency code (PLN) is still in the formatted string replace with overrideString in a mapping we maintain.

Override should happen here: https://github.com/bullhorn/chomsky/blob/master/src/lib/formats.ts#L53

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.