Giter VIP home page Giter VIP logo

_alfaaz_'s Introduction

Hi 👋

I am a technical writer 📃 ✏️ and completely in love with my work ☺️

GitHub is where I:

  • Teach myself to write code that'll help me try out my documentation ideas.

  • Play around with APIs that are easy enough for a low-grade coder like me to use, and are related to my interest areas: languages, words, ancient history.

  • Make my own APIs. I've ambitiously named this project as Indica, and have, at the moment, 2 of the 5 planned APIs up and running ✳️ ✴️ I also plan to male a Mahabharat API but, at the moment, have only a query service up at Mahabharat

Oh, and my name is pronounced like this 👉 ʌnɪndɪtɑː (uh-nin-di-taa)

📧 [email protected]

_alfaaz_'s People

Contributors

aninditabasu avatar

Watchers

 avatar  avatar

_alfaaz_'s Issues

Stories: tweeting fails if char > 140

If the combined character length of all story fragments is more than 140, no tweet is posted. Evidently!

Do a check, esp for the story-combos that use songs.

Word meaning: Tweeting fails if char > 140

Check if tweet text length is more than 140 and, if so, break up the text into two tweets. Needed for Hindi word meanings (Urdu word meanings go onto an image, so no char-count implication).

Word meaning: Sometimes, a Hindi tweet has no meanings

If a Hindi word returns no meanings, an incomplete sentence is tweeted:

image

Either show an error message if the Hindi dictionary does not have an entry for that word, or do not tweet at all.

Sometimes, the Hindi word has a cross-reference to another entry in the dictionary.

मर्तबा [{'id': 'idba60a51c-e54e-42be-802e-a0d3ef571040', 'crossReferences': [{'id': '%E0%A4%AE%E0%A4%B0%E0%A4%A4%E0%A4%AC%E0%A4%BE', 'type': 'another term for', 'text': 'मरतबा'}], 'crossReferenceMarkers': ['= मरतबा']}] length 1 Could not tweet Hindi words.

When this happens, look up the cross-referenced word and tweet its meanings.

Word meaning: Show entries for the word from the Hindi dict too

The UR > EN meanings are in English. Good to show meanings in Hindi as well, mostly because most Urdu words will have entries in the Hindi dictionary anyway.
The Hindi dictionary doesn't have a translation endpoint yet, so the input needs to be in Devanagari and not Nastaliq.

Word meaning: Not all meanings are displayed Part II

Observation

  • For UR > EN, the translations are here: under translations in ['results'][0]['lexicalEntries'][0]['entries'][0]['senses']. Sometimes, further words are contained in ['results'][1].

  • For HI, the meanings are here: under definitions in ['results'][0]['lexicalEntries'][0]['entries'][0]['senses']. Sometimes, further words are contained in two more places:

    • under definitions in ['results'][0]['lexicalEntries'][1]['entries'][0]['senses']
    • under definitions in ['results'][0]['lexicalEntries'][0]['entries'][1]['senses']

ToDo in the code

For UR>EN, look for translations under:

  • ['results'][0]['lexicalEntries'][0]['entries'][0]['senses']
  • ['results'][1]['lexicalEntries'][0]['entries'][0]['senses']

For HI, look for definitions under:

  • ['results'][0]['lexicalEntries'][0]['entries'][0]['senses']
  • ['results'][0]['lexicalEntries'][0]['entries'][1]['senses']
  • ['results'][0]['lexicalEntries'][1]['entries'][0]['senses']

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.