twitter / twitter-text

Twitter Text Libraries. This code is used at Twitter to tokenize and parse text to meet the expectations for what can be used on the platform.
https://developer.twitter.com/en/docs/counting-characters
Apache License 2.0
3.07k stars 520 forks source link

(FR) language chooser option for twitter GUI or tweetdeck #291

Closed drandreaskrueger closed 4 years ago

drandreaskrueger commented 4 years ago

Loving twitter, kudos for your work, sorry for not knowing WHERE to ask this. Please help.

FeatureRequest:

use the lang=en field of a Status() object as chooser in the GUI

Why? My followers are not all English native speakers.

What? I would like to do such things:

  1. show a homepage of an account but only their ENGLISH tweets
  2. follow an account, but only subscribe to their ENGLISH tweets (i.e. mute everything else)
  3. allow others to see on my account's home page that I enabled "FOLLOW in EN/DE", and thus let them follow a language of their choice among my tweeted languages.

(1.) one is REALLY easy. Just insert a ... WHERE lang=en ... into your SQL SELECT statement.

The next ideas (2.) and (3.) are increasingly more complicated. Still though - easy.

IF YOU cannot help, please point me to someone who could perhaps. Thanks.

I have more ideas which can use language in a useful way. But let's start here.

thanks a lot, have a great day! Andreas

the data exists, you just have to add a viewer

example

                            author = Obj
                      contributors = None
                       coordinates = None
                          entities = 0 symbols | 1 user_mentions | 0 hashtags | 1 urls
                    favorite_count = 0
                         favorited = False
                               geo = None
                                id = 117....
                            id_str = 117....
           in_reply_to_screen_name = None
             in_reply_to_status_id = None
         in_reply_to_status_id_str = None
               in_reply_to_user_id = None
           in_reply_to_user_id_str = None
                   is_quote_status = True
                              lang = en
                             place = None
                possibly_sensitive = False
                  quoted_status_id = 1176...
              quoted_status_id_str = 1176...
                     retweet_count = 2
                         retweeted = True
                              text = RT @...: ...
                         truncated = False
                              user = Obj

so far I have seen these properties:

lang = en
lang = de
lang = und

The last one makes me think there will be false negatives. But that is really no problem, initially.

your questions:

problem in one sentence:

my followers/following use English PLUS another language. I want to select "English only".

Expected behavior

A button on each homepage "show only English tweets"

Actual behavior

button does not exist, tried a myriad of tools, to no avail.

Steps to reproduce the behavior

Interview someone who is not an English native speaker. Let them tell you their experience.

drandreaskrueger commented 4 years ago

Suggestion for beta URL for testing this:

https://twitter.com/home?lang=en

https://beta.twitter.com/home?lang=en

drandreaskrueger commented 4 years ago

I have asked the question here now:

https://twitterdevfeedback.uservoice.com/forums/921790-twitter-developer-labs/suggestions/39046141-multilingual-accounts-language-chooser-only-engl