# Question: Why isn't it possible to produce a year-only citation for legislation in APA?

**URL:** https://discourse.citationstyles.org/t/question-why-isnt-it-possible-to-produce-a-year-only-citation-for-legislation-in-apa/1772
**Category:** CSL Development
**Created:** [August 30, 2022, 9:50pm UTC](https://discourse.citationstyles.org/t/question-why-isnt-it-possible-to-produce-a-year-only-citation-for-legislation-in-apa/1772 "2022-08-30T21:50:57Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Wmhorne](https://avatars.discourse-cdn.com/v4/letter/w/ce73a5/32.png) [@Wmhorne](https://discourse.citationstyles.org/u/Wmhorne)
#### Post date: [August 30, 2022, 9:50pm UTC](https://discourse.citationstyles.org/t/question-why-isnt-it-possible-to-produce-a-year-only-citation-for-legislation-in-apa/1772/1 "2022-08-30T21:50:57Z")

</div>

Hello,

I’m trying to cite some legislation in APA, but I only want the citation to include the legislation’s year, not the title and the year.

Here is an example citation:

> […] which was instituted in Example Act 1 (1994).

I just want csl to produce the (1994) part (since I know that csl won’t be able to produce a composite cite—[Running the Processor — citeproc-js 1.1.73 documentation](https://citeproc-js.readthedocs.io/en/latest/running.html), “In some cases, the processor will be unable to produce content for an `author-only` citation flag, or for the corresponding portion of a `composite` citation… By default in such cases, the processor will output an ugly slug: (Unauthored thing 1964) [NO\_PRINTED\_FORM]).”

However, the APA 7 csl produces `(Example Act 1, 1994)`, regardless of whether I omit the author or not.

 ![Screen Shot 2022-08-30 at 4.41.25 PM](https://canada1.discourse-cdn.com/flex029/uploads/citationstyles/original/1X/05d16ce617865ee155a58a59ea97e71db4d87191.jpeg)

With other styles, like Chicago, AMA, and MLA, omitting author results in “Example Act 1” being omitted from the in-text citation, leaving only (1994), which is what I’m hoping to get.

Is there an APA rule stating that legislation must always include the title in its in-text citation? If so, I haven’t been able to find it. Without such a rule, it seems to me that legislation would behave like other types in APA csl—that is, when the author is omitted, only the year shows up.

This behavior seems to stem from this line in apa.csl ([https://github.com/citation-style-language/styles/blob/8d69f16eb895a419c3d05ef4243817b75e8d9e8b/apa.csl#L387](https://github.com/citation-style-language/styles/blob/8d69f16eb895a419c3d05ef4243817b75e8d9e8b/apa.csl#L387)):

```
<macro name="author-intext">
  <choose>
   <if type="bill legal_case legislation treaty" match="any">
     <text macro="title-intext"/>
   </if>

```

When I remove legislation from that list, I get the year-only citation I’m looking for:

Any insight is much appreciated!

Thank you,

Will

---

<div class="post-metadata">

### Author: ![Wmhorne](https://avatars.discourse-cdn.com/v4/letter/w/ce73a5/32.png) [@Wmhorne](https://discourse.citationstyles.org/u/Wmhorne)
#### Post date: [August 30, 2022, 9:53pm UTC](https://discourse.citationstyles.org/t/question-why-isnt-it-possible-to-produce-a-year-only-citation-for-legislation-in-apa/1772/2 "2022-08-30T21:53:32Z")

</div>

Chicago:

 ![Screen Shot 2022-08-30 at 4.46.15 PM](https://canada1.discourse-cdn.com/flex029/uploads/citationstyles/original/1X/0163b65a67de8cba05721f8804a98a1bbd5bb3ca.jpeg)

---

<div class="post-metadata">

### Author: ![Wmhorne](https://avatars.discourse-cdn.com/v4/letter/w/ce73a5/32.png) [@Wmhorne](https://discourse.citationstyles.org/u/Wmhorne)
#### Post date: [August 30, 2022, 9:54pm UTC](https://discourse.citationstyles.org/t/question-why-isnt-it-possible-to-produce-a-year-only-citation-for-legislation-in-apa/1772/3 "2022-08-30T21:54:15Z")

</div>

APA with legislation removed from the author-intext macro:

 ![Screen Shot 2022-08-30 at 4.48.58 PM](https://canada1.discourse-cdn.com/flex029/uploads/citationstyles/original/1X/d021009f19f7f2dc0ff9f316d7988839449cd042.jpeg)

This is the output that I’m hoping to get.

---

<div class="post-metadata">

### Author: ![Sebastian\_Karcher](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.citationstyles.org/sebastian_karcher/32/176_2.png) [@Sebastian\_Karcher](https://discourse.citationstyles.org/u/Sebastian_Karcher)
#### Post date: [August 31, 2022, 1:06am UTC](https://discourse.citationstyles.org/t/question-why-isnt-it-possible-to-produce-a-year-only-citation-for-legislation-in-apa/1772/4 "2022-08-31T01:06:05Z")

</div>

@bwiernik is it possible to include legislation titles into the substitute logic instead of as a separate condition? That’d make this work in APA

---

<div class="post-metadata">

### Author: ![Wmhorne](https://avatars.discourse-cdn.com/v4/letter/w/ce73a5/32.png) [@Wmhorne](https://discourse.citationstyles.org/u/Wmhorne)
#### Post date: [September 19, 2022, 3:34pm UTC](https://discourse.citationstyles.org/t/question-why-isnt-it-possible-to-produce-a-year-only-citation-for-legislation-in-apa/1772/5 "2022-09-19T15:34:55Z")

</div>

@bwiernik Any thoughts on the above?
