GithubHelp home page GithubHelp logo

ltt's People

Contributors

archie-mckenzie avatar

Stargazers

 avatar

Watchers

 avatar  avatar

ltt's Issues

Suggestion: add a costs optimizer mode

Add a cost optimizer mode (not for code or text that includes code).

In this mode:
[ ] Remove all new lines and line breaks characters. Everything on a single line.
[ ] Remove all empy lines containing only space characters.
[ ] Remove all repeated spaces.
[ ] Replace repeated points (more than 2 times) with … (1 char)
[ ] Replace repeated punctuations used for q»uot»e and unquote with a single char version ('' becomes ", >> becomes »).
[ ] Replace the single quote character with double quote character (Example: 'Welcome' becomes "Welcome").
[ ] Remove all repeated punctuations (more than one time) (Example: "Yes!!!" becomes "Yes!").
[ ] Convert dates in numerical format (Example: "Fifteen December 1789" becomes "15/10/1789").
[ ] Convert numbers in numerical format (Example: "One Hundred Two Thousands" becomes "102000").
[ ] Convert times in numerical format when convenient (Example: "twelve past five" becomes "05:12").
[ ] Abbreviate titles (Example: "Mister, Missus and Missis" becomes "Mr, Mrs and Ms").
[ ] Replace 'and' with '&'
[ ] Remove all symbols except for punctuation, mathematical or economical (like asterisks, #, symbols, borders, lines, arrows, etc.).
[ ] Use the character - for bullet lists and remove all other symbols.
[ ] Replace the accent character after a letter with the corresponding accented letter (example: e' becomes è or é)
[ ] Remove all emojies, both literal and graphic (Example: "Hello! :-DDD" becomes "Hello!")

The user can enable or disable each one of those options.

The same options can be used for reducing the GPT answer tokens simply adding the above list in the Prompt (example:"You must always use the following rules when writing the answer: ..." )

When the program receive the translated text, it can reverse some of those shortening modifications. For example restoring '&' with 'and', adding line breaks and new lines to ease the reading, making the numbers more readable (example: 102000 becomes 102,000, etc.)

This can provide significants costs reduction when translating a long novel.

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.