Skip to main content

Twitlang(er): Interactions Modeling Language (and Interpreter) for Twitter

  • Conference paper
  • First Online:
Software Engineering and Formal Methods (SEFM 2015)

Part of the book series: Lecture Notes in Computer Science ((LNPSE,volume 9276))

Included in the following conference series:

Abstract

Online social networks are widespread means to enact interactive collaboration among people by, e.g., planning events, diffusing information, and enabling discussions. Twitter provides one of the most illustrative example of how people can effectively interact without resorting to traditional communication media. For example, the platform has acted as a unique medium for reliable communication in emergency or for organising cooperative mass actions. This use of Twitter in a cooperative, possibly critical, setting calls for a more precise awareness of the dynamics regulating message spreading. To this aim, in this paper, we propose Twitlang, a formal language to model interactions among Twitter accounts. The operational semantics associated to the language allows users to clearly and precisely determine the effects of actions performed by Twitter accounts, such as post, retweet, reply-to or delete tweets. The language is implemented in the form of a Maude interpreter, Twitlanger, which takes a language term as an input and, automatically or interactively, explores the computations arising from the term. By relying on this interpreter, automatic verification of communication properties of Twitter accounts can be carried out via the analysis tools provided by the Maude framework. We illustrate the benefits of our executable formalisation by means of few simple, yet typical, examples of Twitter interactions, whose effects are somehow subtle.

Research supported by the European projects IP 257414 ASCENS and STReP 600708 QUANTICOL, the Italian PRIN 2010LHT4KM CINA, and the Registro.it project MIB (My Information Bubble).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

Notes

  1. 1.

    For the sake of simplicity, the set \(U\) is statically defined. This is adequate for the purpose of our study; a more dynamic definition of the set could be considered in further developments.

  2. 2.

    Both the command and its output use a shorthand notation - i.e. the terms example, M1 and M2 - that is equationally equivalent to a complex composition of terms.

References

  1. Smith, C.: By The Numbers: 150+ Amazing Twitter Statistics. In: (March 2015). http://goo.gl/2Xr9X. Last checked 21 March 2015

  2. The Guardian: Barack Obama tweets the start to his 2012 re-election campaign. In: (Apr 2011). http://goo.gl/Uk6Av. Last checked 21 March 2015

  3. Brandwatch.com: Analysis of global brands’ Twitter activity. In: (Dec 2012). http://goo.gl/C6MeU. Last checked 21 March 2015

  4. Save the Children: Hurricane Tips for Parents: How to Help Kids. In: (Jun 2014). http://goo.gl/vZynkt. Last checked 21 March 2015

  5. Myers, S.A., Sharma, A., Gupta, P., Lin, J.: Information network or social network?: the structure of the twitter follow graph. In: WWW, pp. 493–498. ACM (2014)

    Google Scholar 

  6. Ritter, A., Cherry, C., Dolan, B.: Unsupervised modeling of twitter conversations. In: HLT-NAACL, pp. 172–180 (2010)

    Google Scholar 

  7. Stringhini, G., Kruegel, C., Vigna, G.: Detecting spammers on social networks. In: ACSAC, pp. 1–9. ACM (2010)

    Google Scholar 

  8. Milner, R.: Communication and Concurrency. Prentice-Hall, Englewood Cliffs (1989)

    Google Scholar 

  9. Plotkin, G.: A structural approach to operational semantics. J. Log. Algebr. Program. 60–61, 17–139 (2004)

    MathSciNet  Google Scholar 

  10. De Nicola, R., Maggi, A., Petrocchi, M., Spognardi, A., Tiezzi, F.: Twitlang(er): interactions modeling language (and interpreter) for Twitter. Technical report, IMT (2015). http://sysma.imtlucca.it/tools/twitlanger/

  11. Milner, R., Parrow, J., Walker, D.: A Calculus of mobile processes. Inf. Comp. 100(1), 1–77 (1992)

    Article  MATH  MathSciNet  Google Scholar 

  12. Clavel, M., Durán, F., Eker, S., Lincoln, P., Martí-Oliet, N., Meseguer, J., Talcott, C.: All About Maude - A High-performance Logical Framework. Springer, Heidelberg (2007)

    MATH  Google Scholar 

  13. Verdejo, A., Martí-Oliet, N.: Implementing CCS in Maude 2. In: WRLA, vol. 71 of ENTCS, pp. 239–257. Elsevier (2002)

    Google Scholar 

  14. Larson, D.: 9 Strange Things About Tweets, Retweets And DMs Every Twitter User Must Know. In: (Nov 2011). http://goo.gl/XyvAO. Last checked 21 March 2015

  15. Bollen, J., Mao, H., Pepe, A.: Modeling public mood and emotion: twitter sentiment and socio-economic phenomena. In: ICWSM (2011)

    Google Scholar 

  16. Pak, A., Paroubek, P.: Twitter as a corpus for sentiment analysis and opinion mining. In: LREC, ELRA (2010)

    Google Scholar 

  17. Hong, L., Davison, B.D.: Empirical study of topic modeling in twitter. In: SOMA, pp 80–88. ACM (2010)

    Google Scholar 

  18. Abel, F., Gao, Q., Houben, G.-J., Tao, K.: Analyzing user modeling on twitter for personalized news recommendations. In: Konstan, J.A., Conejo, R., Marzo, J.L., Oliver, N. (eds.) UMAP 2011. LNCS, vol. 6787, pp. 1–12. Springer, Heidelberg (2011)

    Chapter  Google Scholar 

  19. Abel, F., Hauff, C., Houben, G.J., Stronkman, R., Tao, K.: Twitcident: fighting fire with information from social web streams. In: WWW, pp. 305–308 (2012)

    Google Scholar 

  20. Mendoza, M., Poblete, B., Castillo, C.: Twitter under crisis: can we trust what we RT? In: SOMA, pp. 71–79. ACM (2010)

    Google Scholar 

  21. Laniado, D., Mika, P.: Making sense of twitter. In: Patel-Schneider, P.F., Pan, Y., Hitzler, P., Mika, P., Zhang, L., Pan, J.Z., Horrocks, I., Glimm, B. (eds.) ISWC 2010, Part I. LNCS, vol. 6496, pp. 470–485. Springer, Heidelberg (2010)

    Chapter  Google Scholar 

  22. Gonalves, B., Perra, N., Vespignani, A.: Modeling users’ activity on twitter networks: validation of Dunbar’s number. PLoS ONE 6(8), e22656 (2011)

    Article  Google Scholar 

  23. Yang, C., Harkreader, R., Gu, G.: Empirical evaluation and new design for fighting evolving twitter spammers. IEEE Inf. Forensics Secur. 8(8), 1280–1293 (2013)

    Article  Google Scholar 

  24. Cresci, S., Di Pietro, R., Petrocchi, M., Spognardi, A., Tesconi, M.: A criticism to society (as seen by Twitter analytics). In: DASec. IEEE (2014)

    Google Scholar 

  25. De Nicola, R., Ferrari, G., Pugliese, R.: KLAIM: a Kernel language for agents interaction and mobility. T. Software Eng. 24(5), 315–330 (1998)

    Article  Google Scholar 

  26. De Nicola, R., Loreti, M., Pugliese, R., Tiezzi, F.: A formal approach to autonomic systems programming: the SCEL language. TAAS 9(2), 7:1–7:29 (2014)

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Francesco Tiezzi .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Springer International Publishing Switzerland

About this paper

Cite this paper

De Nicola, R., Maggi, A., Petrocchi, M., Spognardi, A., Tiezzi, F. (2015). Twitlang(er): Interactions Modeling Language (and Interpreter) for Twitter. In: Calinescu, R., Rumpe, B. (eds) Software Engineering and Formal Methods. SEFM 2015. Lecture Notes in Computer Science(), vol 9276. Springer, Cham. https://doi.org/10.1007/978-3-319-22969-0_23

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-22969-0_23

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-22968-3

  • Online ISBN: 978-3-319-22969-0

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics