In scientific publications, a reference to a previous work (source) that is discussed in the
manuscript is called a citation. In different scientific disciplines, and sometimes even
different journals, different so-called citation styles are used. The citation style defines how a
citation is formatted. We will consider two different citation styles in this question:
- APA style: citation style of the American Psychological Association
([login to view URL]), see also Wikipedia page
([login to view URL]). This style is widely used in Psychology
and Social Sciences.
- IEEE: citation style of the Institute for Electrical and Electronics Engineers (IEEE) is
used in IEEE journals which cover engineering and related disciplines
([login to view URL]). See the Learning Materials/Coursework
folder on Learning Central for more information on the IEEE style.
There are two main aspects to a publication where citation styles apply:
1. In-text citations: These are used in the text body whenever one refers to, summarises,
paraphrases, or quotes from another source. This is an example from Wikipedia
([login to view URL]) for a sentence including an in-text citation
of a paper by Schmidt and Oh in APA format:
In our postfactual era, many members of the public fear that the findings of
science are not real (Schmidt & Oh, 2016).
In IEEE format, references are given as numbers in square brackets. Example:
This is compounded by the fact that the field is evolving from work performed
by an individual that does data science to a team that does data science [1].
2. Reference list: In a scientific publication, the last section is typically the References
section, which provides full details on the in-text citations. For instance, the full
reference corresponding to the Schmidt & Oh (2016) in-text citation above would be:
Schmidt, F. L., & Oh, I.-S. (2016). The crisis of confidence in research
findings in psychology: Is lack of replication the real problem? Or is it
something else? Archives of Scientific Psychology, 4(1), 32–37.
[login to view URL]
In an article using IEEE format, every reference in the reference list needs to be
numbered:
1. J. Saltz, "The Need for New Processes Methodologies and Tools to Support
Big Data Teams and Improve Big Data Project Effectiveness", Big Data
Conference, 2015.
Your task: Implement a function change_style(filepath, style), which takes as input
two arguments: (1) filepath, which can be either [login to view URL] or [login to view URL]
and (2) style (a string being either IEEE or APA), and swaps their citation style (i.e.,
converts IEEE citations into APA and vice versa). You are not expected to consider cases
outside the two documents provided.
The programme, should only use basic Python including string
operations, as well as the docx module. Usage of Numpy, Pandas, the regular
expression module re, or any other modules s is not
permitted!
I am a Python developer with 4+ years of experience that specializes in multi-platform applications using PyQt, PySide/PyQt,Scrapy, BeautifulSoup 4, Pillow, Matplotlib, Xml, json, and csv modules, Celery
I am also working to be more of a Full-Stack developer, so that means I have more experience than indicated by just my Python background.
I enjoy working with passionate people who know what it is they need and where they are headed. I've worked with individual people and with organizations in teams of 3+ people from all over the world.
As a developer, I make a point to write my code in a consistent style adhering to the PEP8 style document. For other languages,I also make an ?effort to write good quality tests and documentation for all of the code I write.
Kindly reply me soon so we can discuss more about this.
Thank you