reglab/housing_qa huggingface dataset:
CA Civ Pro Code § 386.6 (2021)
2021 California Code|Code of Civil Procedure - CCP|PART 2 - OF CIVIL ACTIONS|TITLE 3 - OF THE PARTIES TO CIVIL ACTIONS|CHAPTER 6 - Interpleader|Section 386.6.

386.6.  (a) A party to an action who follows the procedure set forth in Section 386 or 386.5 may insert in his motion, petition, complaint, or cross complaint a request for allowance of his costs and reasonable attorney fees incurred in such action. In ordering the discharge of such party, the court may, in its discretion, award such party his costs and reasonable attorney fees from the amount in dispute which has been deposited with the court. At the time of final judgment in the action the court may make such further provision for assumption of such costs and attorney fees by one or more of the adverse claimants as may appear proper.(b) A party shall not be denied the attorney fees authorized by subdivision (a) for the reason that he is himself an attorney, appeared in pro se, and performed his own legal services.(Amended by Stats. 1974, Ch. 273.)
CA Civ Pro Code § 387 (2021)
2021 California Code|Code of Civil Procedure - CCP|PART 2 - OF CIVIL ACTIONS|TITLE 3 - OF THE PARTIES TO CIVIL ACTIONS|CHAPTER 7 - Intervention|Section 387.

387.  (a) For purposes of this section:(1) “Defendant” includes a cross-defendant.(2) “Plaintiff” includes a cross-complainant.(b) An intervention takes place when a nonparty, deemed an intervenor, becomes a party to an action or proceeding between other persons by doing any of the following:(1) Joining a plaintiff in claiming what is sought by the complaint.(2) Uniting with a defendant in resisting the claims of a plaintiff.(3) Demanding anything adverse to both a plaintiff and a defendant.(c) A nonparty shall petition the court for leave to intervene by noticed motion or ex parte application. The petition shall include a copy of the proposed complaint in intervention or answer in intervention and set forth the grounds upon which intervention rests.(d) (1) The court shall, upon timely application, permit a nonparty to intervene in the action or proceeding if either of the following conditions is satisfied:(A) A provision of law confers an unconditional right to intervene. (B) The person seeking intervention claims an interest relating to the property or transaction that is the subject of the action and that person is so situated that the disposition of the action may impair or impede that person’s ability to protect that interest, unless that person’s interest is adequately represented by one or more of the existing parties.(2) The court may, upon timely application, permit a nonparty to intervene in the action or proceeding if the person has an interest in the matter in litigation, or in the success of either of the parties, or an interest against both.(e) If leave to intervene is granted by the court, the intervenor shall do both of the following:(1) Separately file the complaint in intervention, answer in intervention, or both.(2) Serve a copy of the order, or notice of the court’s decision or order, granting leave to intervene and the pleadings in intervention as follows:(A) A party to the action or proceeding who has not yet appeared shall be served in the same manner for service of summons pursuant to Article 3 (commencing with Section 415.10) of Chapter 4 of Title 5 of Part 2.(B) A party who has appeared in the action or proceeding, whether represented by an attorney or not represented by an attorney, shall be served in the same manner for service of summons pursuant to Article 3 (commencing with Section 415.10) of Chapter 4 of Title 5 of Part 2, or in the manner provided by Chapter 5 (commencing with Section 1010) of Title 14 of Part 2.(f) Within 30 days after service of a complaint in intervention or answer in intervention, a party may move, demur, or otherwise plead to the complaint in intervention or answer in intervention in the same manner as to an original complaint or answer.(Amended by Stats. 2017, Ch. 131, Sec. 1. (AB 1693) Effective January 1, 2018.)
CA Civ Pro Code § 388 (2021)
2021 California Code|Code of Civil Procedure - CCP|PART 2 - OF CIVIL ACTIONS|TITLE 3 - OF THE PARTIES TO CIVIL ACTIONS|CHAPTER 7 - Intervention|Section 388.

388.  In an action brought by a party for relief of any nature other than solely for money damages where a pleading alleges facts or issues concerning alleged pollution or adverse environmental effects which could affect the public generally, the party filing the pleading shall furnish a copy to the Attorney General of the State of California. The copy shall be furnished by the party filing the pleading within 10 days after filing.(Repealed and added by Stats. 1992, Ch. 178, Sec. 26. Effective January 1, 1993.)
CA Civ Pro Code § 389 (2021)
2021 California Code|Code of Civil Procedure - CCP|PART 2 - OF CIVIL ACTIONS|TITLE 3 - OF THE PARTIES TO CIVIL ACTIONS|CHAPTER 8 - Compulsory Joinder|Section 389.

389.  (a) A person who is subject to service of process and whose joinder will not deprive the court of jurisdiction over the subject matter of the action shall be joined as a party in the action if (1) in his absence complete relief cannot be accorded among those already parties or (2) he claims an interest relating to the subject of the action and is so situated that the disposition of the action in his absence may (i) as a practical matter impair or impede his ability to protect that interest or (ii) leave any of the persons already parties subject to a substantial risk of incurring double, multiple, or otherwise inconsistent obligations by reason of his claimed interest. If he has not been so joined, the court shall order that he be made a party.(b) If a person as described in paragraph (1) or (2) of subdivision (a) cannot be made a party, the court shall determine whether in equity and good conscience the action should proceed among the parties before it, or should be dismissed without prejudice, the absent person being thus regarded as indispensable. The factors to be considered by the court include: (1) to what extent a judgment rendered in the person’s absence might be prejudicial to him or those already parties; (2) the extent to which, by protective provisions in the judgment, by the shaping of relief, or other measures, the prejudice can be lessened or avoided; (3) whether a judgment rendered in the person’s absence will be adequate; (4) whether the plaintiff or cross-complainant will have an adequate remedy if the action is dismissed for nonjoinder.(c) A complaint or cross-complaint shall state the names, if known to the pleader, of any persons as described in paragraph (1) or (2) of subdivision (a) who are not joined, and the reasons why they are not joined.(d) Nothing in this section affects the law applicable to class actions.(Amended by Stats. 1971, Ch. 244.)
CA Civ Pro Code § 389.5 (2021)
2021 California Code|Code of Civil Procedure - CCP|PART 2 - OF CIVIL ACTIONS|TITLE 3 - OF THE PARTIES TO CIVIL ACTIONS|CHAPTER 8 - Compulsory Joinder|Section 389.5.

389.5.  When, in an action for the recovery of real or personal property, or to determine conflicting claims thereto, a person not a party to the action but having an interest in the subject thereof makes application to the court to be made a party, it may order him to be brought in by the proper amendment.(Added by Stats. 1957, Ch. 1498.)
CA Civ Pro Code § 392 (2021)
2021 California Code|Code of Civil Procedure - CCP|PART 2 - OF CIVIL ACTIONS|TITLE 4 - OF THE PLACE OF TRIAL, RECLASSIFICATION, AND COORDINATION OF CIVIL ACTIONS|CHAPTER 1 - Place of Trial|Section 392.

392.  (a) Subject to the power of the court to transfer actions and proceedings as provided in this title, the superior court in the county where the real property that is the subject of the action, or some part thereof, is situated, is the proper court for the trial of the following actions:(1) For the recovery of real property, or of an estate or interest therein, or for the determination in any form, of that right or interest, and for injuries to real property.(2) For the foreclosure of all liens and mortgages on real property.(b) In the court designated as the proper court in subdivision (a), the proper court location for trial of a proceeding for an unlawful detainer, as defined in Section 1161, is the location where the court tries that type of proceeding that is nearest or most accessible to where the real property that is the subject of the action, or some part thereof, is situated. Otherwise any location of the superior court designated as the proper court in subdivision (a) is a proper court location for the trial. The court may specify by local rule the nearest or most accessible court location where the court tries that type of case.(Amended by Stats. 2002, Ch. 806, Sec. 7. Effective January 1, 2003.)
CA Civ Pro Code § 393 (2021)
2021 California Code|Code of Civil Procedure - CCP|PART 2 - OF CIVIL ACTIONS|TITLE 4 - OF THE PLACE OF TRIAL, RECLASSIFICATION, AND COORDINATION OF CIVIL ACTIONS|CHAPTER 1 - Place of Trial|Section 393.

393.  Subject to the power of the court to transfer actions and proceedings as provided in this title, the county in which the cause, or some part of the cause, arose, is the proper county for the trial of the following actions:(a) For the recovery of a penalty or forfeiture imposed by statute, except, that when it is imposed for an offense committed on a lake, river, or other stream of water, situated in two or more counties, the action may be tried in any county bordering on the lake, river, or stream, and opposite to the place where the offense was committed.(b) Against a public officer or person especially appointed to execute the duties of a public officer, for an act done by the officer or person in virtue of the office, or against a person who, by the officer’s command or in the officer’s aid, does anything touching the duties of the officer.(Amended by Stats. 2003, Ch. 449, Sec. 7. Effective January 1, 2004.)
CA Civ Pro Code § 395.1 (2021)
2021 California Code|Code of Civil Procedure - CCP|PART 2 - OF CIVIL ACTIONS|TITLE 4 - OF THE PLACE OF TRIAL, RECLASSIFICATION, AND COORDINATION OF CIVIL ACTIONS|CHAPTER 1 - Place of Trial|Section 395.1.

395.1.  Except as otherwise provided in Section 17005 of the Probate Code pertaining to trustees, when a defendant is sued in an official or representative capacity as executor, administrator, guardian, conservator, or trustee on a claim for the payment of money or for the recovery of personal property, the county which has jurisdiction of the estate which the defendant represents shall be the proper county for the trial of the action.(Amended by Stats. 1986, Ch. 820, Sec. 16. Operative July 1, 1987, by Sec. 43 of Ch. 820.)
CA Civ Pro Code § 395.2 (2021)
2021 California Code|Code of Civil Procedure - CCP|PART 2 - OF CIVIL ACTIONS|TITLE 4 - OF THE PLACE OF TRIAL, RECLASSIFICATION, AND COORDINATION OF CIVIL ACTIONS|CHAPTER 1 - Place of Trial|Section 395.2.

395.2.  If an unincorporated association has filed a statement with the Secretary of State pursuant to statute, designating its principal office in this state, the proper county for the trial of an action against the unincorporated association is the same as it would be if the unincorporated association were a corporation and, for the purpose of determining the proper county, the principal place of business of the unincorporated association shall be deemed to be the principal office in this state listed in the statement.(Amended by Stats. 2004, Ch. 178, Sec. 2. Effective January 1, 2005.)
CA Civ Pro Code § 395.5 (2021)
2021 California Code|Code of Civil Procedure - CCP|PART 2 - OF CIVIL ACTIONS|TITLE 4 - OF THE PLACE OF TRIAL, RECLASSIFICATION, AND COORDINATION OF CIVIL ACTIONS|CHAPTER 1 - Place of Trial|Section 395.5.

395.5.  A corporation or association may be sued in the county where the contract is made or is to be performed, or where the obligation or liability arises, or the breach occurs; or in the county where the principal place of business of such corporation is situated, subject to the power of the court to change the place of trial as in other cases.(Added by Stats. 1972, Ch. 118.)
CA Civ Pro Code § 396 (2021)
2021 California Code|Code of Civil Procedure - CCP|PART 2 - OF CIVIL ACTIONS|TITLE 4 - OF THE PLACE OF TRIAL, RECLASSIFICATION, AND COORDINATION OF CIVIL ACTIONS|CHAPTER 1 - Place of Trial|Section 396.

396.  (a) No appeal or petition filed in the superior court shall be dismissed solely because the appeal or petition was not filed in the proper state court.(b) If the superior court lacks jurisdiction of an appeal or petition, and a court of appeal or the Supreme Court would have jurisdiction, the appeal or petition shall be transferred to the court having jurisdiction upon terms as to costs or otherwise as may be just, and proceeded with as if regularly filed in the court having jurisdiction.(Repealed and added by Stats. 2008, Ch. 56, Sec. 2. Effective January 1, 2009.)
CA Civ Pro Code § 396b (2021)
2021 California Code|Code of Civil Procedure - CCP|PART 2 - OF CIVIL ACTIONS|TITLE 4 - OF THE PLACE OF TRIAL, RECLASSIFICATION, AND COORDINATION OF CIVIL ACTIONS|CHAPTER 1 - Place of Trial|Section 396b.

396b.  (a) Except as otherwise provided in Section 396a, if an action or proceeding is commenced in a court having jurisdiction of the subject matter thereof, other than the court designated as the proper court for the trial thereof, under this title, the action may, notwithstanding, be tried in the court where commenced, unless the defendant, at the time he or she answers, demurs, or moves to strike, or, at his or her option, without answering, demurring, or moving to strike and within the time otherwise allowed to respond to the complaint, files with the clerk, a notice of motion for an order transferring the action or proceeding to the proper court, together with proof of service, upon the adverse party, of a copy of those papers. Upon the hearing of the motion the court shall, if it appears that the action or proceeding was not commenced in the proper court, order the action or proceeding transferred to the proper court.(b) In its discretion, the court may order the payment to the prevailing party of reasonable expenses and attorney’s fees incurred in making or resisting the motion to transfer whether or not that party is otherwise entitled to recover his or her costs of action. In determining whether that order for expenses and fees shall be made, the court shall take into consideration (1) whether an offer to stipulate to change of venue was reasonably made and rejected, and (2) whether the motion or selection of venue was made in good faith given the facts and law the party making the motion or selecting the venue knew or should have known. As between the party and his or her attorney, those expenses and fees shall be the personal liability of the attorney not chargeable to the party. Sanctions shall not be imposed pursuant to this subdivision except on notice contained in a party’s papers, or on the court’s own noticed motion, and after opportunity to be heard.(c) The court in a proceeding for dissolution of marriage or legal separation or under the Uniform Parentage Act (Part 3 (commencing with Section 7600) of Division 12 of the Family Code) may, prior to the determination of the motion to transfer, consider and determine motions for allowance of temporary spousal support, support of children, and counsel fees and costs, and motions to determine custody of and visitation with children, and may make all necessary and proper orders in connection therewith.(d) In any case, if an answer is filed, the court may consider opposition to the motion to transfer, if any, and may retain the action in the county where commenced if it appears that the convenience of the witnesses or the ends of justice will thereby be promoted.(e) If the motion to transfer is denied, the court shall allow the defendant time to move to strike, demur, or otherwise plead if the defendant has not previously filed a response.(Amended by Stats. 2005, Ch. 706, Sec. 10. Effective January 1, 2006.)
CA Civ Pro Code § 397 (2021)
2021 California Code|Code of Civil Procedure - CCP|PART 2 - OF CIVIL ACTIONS|TITLE 4 - OF THE PLACE OF TRIAL, RECLASSIFICATION, AND COORDINATION OF CIVIL ACTIONS|CHAPTER 1 - Place of Trial|Section 397.

397.  The court may, on motion, change the place of trial in the following cases:(a) When the court designated in the complaint is not the proper court.(b) When there is reason to believe that an impartial trial cannot be had therein.(c) When the convenience of witnesses and the ends of justice would be promoted by the change.(d) When from any cause there is no judge of the court qualified to act.(e) When a proceeding for dissolution of marriage has been filed in the county in which the petitioner has been a resident for three months next preceding the commencement of the proceeding, and the respondent at the time of the commencement of the proceeding is a resident of another county in this state, to the county of the respondent’s residence when the ends of justice would be promoted by the change. If a motion to change the place of trial is made pursuant to this paragraph, the court may, prior to the determination of such motion, consider and determine motions for allowance of temporary spousal support, support of children, temporary restraining orders, attorneys’ fees, and costs, and make all necessary and proper orders in connection therewith.(Amended by Stats. 1992, Ch. 163, Sec. 19. Effective January 1, 1993. Operative January 1, 1994, by Sec. 161 of Ch. 163.)
CA Civ Pro Code § 397.5 (2021)
2021 California Code|Code of Civil Procedure - CCP|PART 2 - OF CIVIL ACTIONS|TITLE 4 - OF THE PLACE OF TRIAL, RECLASSIFICATION, AND COORDINATION OF CIVIL ACTIONS|CHAPTER 1 - Place of Trial|Section 397.5.

397.5.  In any proceeding for dissolution or nullity of marriage or legal separation of the parties under the Family Code, where it appears that both petitioner and respondent have moved from the county rendering the order, the court may, when the ends of justice and the convenience of the parties would be promoted by the change, order that the proceedings be transferred to the county of residence of either party.(Amended by Stats. 1994, Ch. 1269, Sec. 2.6. Effective January 1, 1995.)
CA Civ Pro Code § 398 (2021)
2021 California Code|Code of Civil Procedure - CCP|PART 2 - OF CIVIL ACTIONS|TITLE 4 - OF THE PLACE OF TRIAL, RECLASSIFICATION, AND COORDINATION OF CIVIL ACTIONS|CHAPTER 1 - Place of Trial|Section 398.

398.  (a) If a court orders the transfer of an action or proceeding for a cause specified in subdivisions (b), (c), and (d) of Section 397, the action or proceeding shall be transferred to a court having jurisdiction of the subject matter of the action upon agreement of the parties by stipulation in writing, or in open court and entered in the minutes or docket. If the parties do not so agree, the action or proceeding shall be transferred to the nearest or most accessible court where the like objection or cause for making the order does not exist.(b) If an action or proceeding is commenced in a court other than one designated as a proper court for the trial thereof by the provisions of this title, and the same is ordered transferred for that reason, the action or proceeding shall be transferred to a proper court upon agreement of the parties by stipulation in writing, or in open court and entered in the minutes or docket. If the parties do not so agree, the action or proceeding shall be transferred to a proper court in the county in which the action or proceeding was commenced which the defendant may designate or, if there is no proper court in that county, to a proper court, in a proper county, designated by the defendant. If the defendant does not designate the court as herein provided, or if the court orders the transfer of an action on its own motion as provided in this title, the action or proceeding shall be transferred to the proper court as determined by the court in which the action or proceeding is pending.(c) The designation of the court by the defendant as provided for in subdivision (b), may be made in the notice of motion for change of venue or in open court and entered in the minutes or docket at the time the order for transfer is made.(Amended by Stats. 2015, Ch. 303, Sec. 39. (AB 731) Effective January 1, 2016.)
CA Civ Pro Code § 400 (2021)
2021 California Code|Code of Civil Procedure - CCP|PART 2 - OF CIVIL ACTIONS|TITLE 4 - OF THE PLACE OF TRIAL, RECLASSIFICATION, AND COORDINATION OF CIVIL ACTIONS|CHAPTER 1 - Place of Trial|Section 400.

400.  When an order is made by the superior court granting or denying a motion to change the place of trial, the party aggrieved by the order may, within 20 days after service of a written notice of the order, petition the court of appeal for the district in which the court granting or denying the motion is situated for a writ of mandate requiring trial of the case in the proper court. The superior court may, for good cause, and prior to the expiration of the initial 20-day period, extend the time for one additional period not to exceed 10 days. The petitioner shall file a copy of the petition in the trial court immediately after the petition is filed in the court of appeal. The court of appeal may stay all proceedings in the case, pending judgment on the petition becoming final. The clerk of the court of appeal shall file with the clerk of the trial court, a copy of any final order or final judgment immediately after the order or judgment becomes final.(Amended by Stats. 1999, Ch. 344, Sec. 10. Effective September 7, 1999.)
CA Civ Pro Code § 401 (2021)
2021 California Code|Code of Civil Procedure - CCP|PART 2 - OF CIVIL ACTIONS|TITLE 4 - OF THE PLACE OF TRIAL, RECLASSIFICATION, AND COORDINATION OF CIVIL ACTIONS|CHAPTER 1 - Place of Trial|Section 401.

401.  (1) Whenever it is provided by any law of this State that an action or proceeding against the State or a department, institution, board, commission, bureau, officer or other agency thereof shall or may be commenced in, tried in, or removed to the County of Sacramento, the same may be commenced and tried in any city or city and county of this State in which the Attorney General has an office.(2) Whenever it is provided by any law of this State that the State or a department, institution, board, commission, bureau, officer or other agency thereof shall or may commence an action or proceeding in the County of Sacramento, the same, on motion of the defendants or some of them, shall be removed for trial to the county or city and county in which the Attorney General has an office nearest to the county in which the defendants or some of them reside or have their principal office in this State.(Added by Stats. 1947, Ch. 306.)
CA Civ Pro Code § 402 (2021)
2021 California Code|Code of Civil Procedure - CCP|PART 2 - OF CIVIL ACTIONS|TITLE 4 - OF THE PLACE OF TRIAL, RECLASSIFICATION, AND COORDINATION OF CIVIL ACTIONS|CHAPTER 1 - Place of Trial|Section 402.

402.  (a) Except as otherwise provided by law:(1) A superior court may specify by local rule the locations where certain types of actions or proceedings are to be filed.(2) A superior court may specify by local rule the locations where certain types of actions or proceedings are to be heard or tried.(3) A superior court may not dismiss a case, and the clerk may not reject a case for filing, because it is filed, or a person seeks to file it, in a court location other than the location specified by local rule. However, the court may transfer the case on its own motion to the proper court location.(b) A superior court may transfer an action or proceeding filed in one location to another location of the superior court. This section does not affect the authority of the presiding judge to apportion the business of the court as provided by the California Rules of Court.(Repealed and added by Stats. 2002, Ch. 806, Sec. 12. Effective January 1, 2003.)