reglab/housing_qa huggingface dataset:
MA Gen L ch 247 § 7 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 247 - Replevin|Section 7 - Goods Unlawfully Taken, Detained or Attached

Section 7. If goods exceeding twenty dollars in value are unlawfully taken or detained from the owner or person entitled to their possession, or if goods of that value, which have been attached on mesne process or taken on execution, are claimed by a person other than the defendant in the action in which they have been so attached or taken, the owner or such other person may cause them to be replevied.
MA Gen L ch 247 § 8 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 247 - Replevin|Section 8 - Bond; Amount; Appraisal of Goods

Section 8. Except as otherwise provided in section thirty-seven of chapter two hundred and fifty-five, before the officer serving the writ delivers the goods to the plaintiff, he shall take from the plaintiff or a person in his behalf a bond payable to the defendant in a sum equal to double the value of the goods, with sufficient sureties, conditioned to prosecute the replevin to final judgment and to pay such damages and costs as the defendant shall recover and to return the goods if such shall be the final judgment. The officer shall appraise the goods and return the writ in the manner provided in sections three and four; but if the writ is returnable to the superior court, the bond shall be left with the clerk of the court for the use of the defendant.
MA Gen L ch 247 § 9 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 247 - Replevin|Section 9 - Judgment for Defendant

Section 9. If the court finds that the defendant is entitled to a return of the goods, judgment shall be rendered therefor and for the damages caused by the taking by the replevin and for costs.
MA Gen L ch 247 § 10 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 247 - Replevin|Section 10 - Damages; Assessment; Rate

Section 10. If the goods when replevied had been taken on execution, or if they had been attached and judgment is afterward rendered for the attaching creditor, and if in either case the service of the execution is delayed by reason of the replevin, the damages to be assessed for the defendant upon a judgment for a return shall be at the rate of not less than twelve per cent a year on the value of the goods for the time during which the service of the execution was so delayed.
MA Gen L ch 247 § 11 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 247 - Replevin|Section 11 - Money Recovered by Officer After Replevin of Goods Attached, etc.; Disposition

Section 11. Money recovered by an officer in an action of replevin for goods attached or taken on execution by him or recovered by him in an action upon the replevin bond shall be applied as follows:  First, To pay the lawful fees and charges of the officer and the reasonable expenses of the action of replevin and of the action on the bond, so far as such expenses are not reimbursed by the costs recovered.  Second, To pay to the creditor at whose suit the goods were attached or taken on execution the amount recovered by him in that action, or so much thereof as remains unpaid, with interest thereon at the rate of twelve per cent a year for the time during which the money has been withheld from him, or the service of his execution has been delayed by reason of the replevin.  If the attaching creditor in such case does not recover judgment in the action in which the attachment was made, or if a balance remains of the money so recovered by the officer after paying what is due to the creditor, such money shall be applied in the same manner as the surplus, if any, of the proceeds of sale would and ought to have been applied had the goods been sold on execution.
MA Gen L ch 247 § 12 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 247 - Replevin|Section 12 - Application of Amounts Received by Creditor

Section 12. All amounts received by such creditor from the proceeds of the sale of goods attached or taken on execution and afterward returned, or received by him for the value of goods not returned, or recovered from the officer for the insufficiency of the sureties on the bond, shall be applied to the discharge of the judgment recovered by the creditor; and all amounts received as interest or damages for the delay of his execution shall be applied, one half to the sole use of the creditor, and the other half in discharge of the judgment.
MA Gen L ch 247 § 13 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 247 - Replevin|Section 13 - Judgment for Plaintiff

Section 13. If the court finds that the goods were unlawfully taken or attached or unlawfully detained by the defendant, the plaintiff shall have judgment for his damages caused thereby and for costs.
MA Gen L ch 247 § 14 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 247 - Replevin|Section 14 - Sureties on Bond; Approval

Section 14. Sureties on a replevin bond may be approved in writing by the officer who serves the writ or by the defendant or by a justice of a district court or by a master in chancery, and, if approved otherwise than by the officer, he shall not be responsible for their sufficiency.
MA Gen L ch 247 § 15 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 247 - Replevin|Section 15 - Approval of Sureties; Proceedings

Section 15. If such sureties are to be approved by a justice of a district court or by a master in chancery, the officer who serves the writ shall give written notice to the defendant or to the person from whose custody the property has been taken, stating the time and place of hearing thereon and the names and residences of the proposed sureties, allowing not less than one hour before the time appointed for the hearing and at the rate of one hour additional for each mile of travel.
MA Gen L ch 247 § 16 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 247 - Replevin|Section 16 - Fees of Master

Section 16. The fee of the master for the hearing and decision shall be as prescribed in section twenty-three of chapter two hundred and sixty-two; and, if the bond is approved, such fee shall be taxed in the plaintiff's costs, if he prevails in the action.
MA Gen L ch 247 § 17 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 247 - Replevin|Section 17 - Defects in Bond; Dismissal of Action

Section 17. An action of replevin shall not be dismissed by reason of a defect in the form or substance of the bond taken therein, if the court is satisfied that such bond was intended in good faith as a compliance with the law requiring a bond to be taken before service of the writ and if the plaintiff, within such time and upon such terms as the court orders, files a new bond such as is required by law, approved by the court or in the manner provided in section fourteen.
MA Gen L ch 247 § 18 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 247 - Replevin|Section 18 - Actions Against Sureties; Serving and Entering Writ; Limitations

Section 18. An action shall not be maintained against a surety on a replevin bond, unless the writ is served on him within one year after the final judgment in the action of replevin. If the writ of replevin is not entered, an action on the bond shall not be maintained against a surety unless it is entered within one year after the return day of the writ of replevin.
MA Gen L ch 247 § 19 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 247 - Replevin|Section 19 - Damages; Assessment

Section 19. Damages in replevin shall be assessed by the jury by which the cause is tried, if there is a trial by jury; otherwise, by the court or by a jury impanelled therefor.
MA Gen L ch 247 § 20 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 247 - Replevin|Section 20 - Judgment for Return of Goods Attached

Section 20. If the goods replevied had been attached, they shall, upon a judgment for a return, be held liable to the attachment until final judgment in the action in which they were attached, and for thirty days thereafter, so that they may be taken on execution. If such final judgment is rendered before the return of the goods, or if the goods when replevied were seized and held on execution, they shall be held subject to the same attachment or seizure for thirty days after the return, in order that the execution may be served thereon, or the service thereof completed, in like manner as it might have been if the goods had not been replevied.
MA Gen L ch 247 § 21 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 247 - Replevin|Section 21 - Writ of Return; Form

Section 21. The writ of return in actions of replevin shall be substantially in the form heretofore established and used in like cases.
MA Gen L ch 247 § 22 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 247 - Replevin|Section 22 - Effect of Foregoing Provisions

Section 22. The foregoing provisions shall not preclude the defendant from his remedy on the replevin bond, nor, except as provided in section fourteen, from his remedy against the officer for the insufficiency of the sureties on the bond, to recover the value of the goods and the loss or damage caused by the replevin, although he has endeavored to recover the same by the writ of return as before provided.
MA Gen L ch 248 § 1 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 1 - Persons Entitled to Writ; Exceptions

Section 1. Whoever is imprisoned or restrained of his liberty may, as of right and of course, prosecute a writ of habeas corpus, according to this chapter, to obtain release from such imprisonment or restraint, if it proves to be unlawful, unless—  First, He has been committed for treason or felony, or on suspicion thereof, or as accessory before the fact to a felony, and the cause has been plainly expressed in the warrant of commitment.  Second, He has been convicted or is in execution upon legal process, civil or criminal.  Third, He has been committed on mesne process in a civil action in which he was liable to arrest and imprisonment, unless excessive and unreasonable bail was required.
MA Gen L ch 248 § 2 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 2 - By Whom Issued

Section 2. The writ may be issued, irrespective of the county in which the person is imprisoned or restrained, by the supreme judicial or the superior court, by a probate or a district court or by a judge of any of said courts.
MA Gen L ch 248 § 3 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 3 - Petition for Writ; Contents; Annexed Papers

Section 3. The petition for the writ shall be in writing, signed and sworn to by the person for whose release it is intended, or by a person in his behalf, and shall state by whom and where the person is imprisoned or restrained, the name of the prisoner and of the person detaining him, if their names are known, or a description of them, if their names are not known, and the cause or pretence of such imprisonment or restraint, according to the knowledge and belief of the petitioner.  If the imprisonment or restraint is by virtue of a warrant or other process, a copy thereof shall be annexed, unless it appears that such copy has been demanded and refused or that, for a sufficient reason, a demand therefor could not be made.
MA Gen L ch 248 § 4 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 4 - Issuance of Writ; Return

Section 4. The court or magistrate to whom the petition is presented shall, without delay, issue a writ of habeas corpus, substantially in the form heretofore established and used in the commonwealth, and returnable forthwith to the supreme judicial court, or a justice thereof, at such place as shall be designated in the writ.
MA Gen L ch 248 § 5 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 5 - Form of Writ

Section 5. If the imprisonment or restraint is not by a sheriff, deputy sheriff or jailer, the writ shall be in the following form:  Commonwealth of Massachusetts.  (Seal.) To the sheriffs of our several counties and to their respective deputies,  Greeting.  We command you that the body of , of , by , of ,imprisoned and restrained of his liberty, as it is said, you take andhave before a justice of our supreme judicial court at immediately after the receipt of this writ, to do and receive what our said justice shall then and there consider concerning him in this behalf; and summon said then and there to appear before our said justice to show the cause of the taking and detaining of said ; and have you there this writ with your doings thereon.  Witness at this dayof in the year .
MA Gen L ch 248 § 6 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 6 - Signature of Magistrate or Clerk; Service

Section 6. If the writ is issued by the court when sitting for the transaction of business, it shall be signed by the clerk, otherwise by the magistrate issuing it, and may be served in any county by any sheriff or deputy sheriff.
MA Gen L ch 248 § 7 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 7 - Designation of Custodian of Prisoner

Section 7. The person who has the custody of the prisoner may be designated by his office or by his own name, or, if they are unknown or uncertain, he may be described by a fictitious name and the person upon whom the writ is served shall be held to be the person intended.
MA Gen L ch 248 § 8 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 8 - Designation of Prisoner

Section 8. The person restrained shall be designated by name, if known; otherwise, he may be so described as to identify him.
MA Gen L ch 248 § 9 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 9 - Expense of Transporting Prisoner; Advance Payment

Section 9. If the person restrained is confined in jail or is in the custody of a civil officer, the court or magistrate granting the writ shall certify thereon the amount to be paid for the expense of transporting him from the place of imprisonment, and the officer shall not be bound to obey the writ unless that amount is paid or tendered to him.
MA Gen L ch 248 § 10 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 10 - Return of Writ

Section 10. Any person to whom the writ is directed shall receive it, and, upon payment or tender of the charges demandable for its execution, shall make due return thereof within five days after receiving it.
MA Gen L ch 248 § 11 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 11 - Contents of Return

Section 11. The person in whose custody the prisoner is found shall state in writing, plainly and unequivocally, to the court or justice before whom the writ is returnable—  First, Whether the prisoner is in his custody or power or under his restraint.  Second, If the prisoner is in his custody or power or under his restraint, his specific authority for and the true and whole cause of such imprisonment or restraint, with a copy of the writ, warrant or other process, if any, upon which the prisoner is detained.  Third, If the prisoner has been in his custody or power or under his restraint, and has been transferred to that of another, particularly to whom, when, why and by what authority such transfer was made.  The statement shall be signed by him and, unless he is a sworn public officer and makes the statement in his official capacity, shall be sworn to by him.
MA Gen L ch 248 § 12 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 12 - Production of Prisoner

Section 12. The person who makes the statement shall at the same time produce the prisoner, if in his custody or power or under his restraint, according to the command of the writ, unless prevented by the illness or infirmity of the prisoner.
MA Gen L ch 248 § 13 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 13 - Illness Preventing Production of Prisoner

Section 13. If by reason of the illness or infirmity of the prisoner he cannot without danger be taken to the place appointed for the return of the writ, that fact shall be stated in the statement and, if proved, the judge may proceed to the place where the prisoner is confined and there make his examination; or he may postpone the examination or may make such other order in the case as law and justice require.
MA Gen L ch 248 § 14 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 14 - Return Before Justice of Court

Section 14. If the court to which the writ is returnable is not sitting for the transaction of business when the writ is returned, the return shall be made before a justice thereof. If the writ is returned before a justice when the court is sitting for the transaction of business, he may adjourn the case into the court, to be there heard and determined.
MA Gen L ch 248 § 15 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 15 - Causes of Imprisonment; Examination

Section 15. After the writ has been returned, the prisoner may deny any of the facts set forth in the statement and may allege any other material facts; and the court or justice shall examine summarily and without delay the causes of the imprisonment or restraint, hear the evidence produced by any persons interested or authorized to appear and dispose of the prisoner as law and justice require, and may adjourn the examination from time to time.
MA Gen L ch 248 § 16 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 16 - Notice to Persons Interested in Continuing Imprisonment

Section 16. If it appears from the return of the writ or otherwise that the prisoner is detained on a process under which another person has an interest in continuing his imprisonment or restraint, he shall not be discharged until notice has been given to such other person or his attorney, if within the commonwealth. If such person or his attorney is not within the commonwealth the court may order notice to be given to him.
MA Gen L ch 248 § 17 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 17 - Notice; Prisoners Held for Crimes

Section 17. If it appears from the return of the writ or otherwise that the prisoner is imprisoned on a criminal accusation, he shall not be discharged until notice has been given to the attorney general or other attorney for the commonwealth.
MA Gen L ch 248 § 18 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 18 - Custody of Prisoner Pending Examination

Section 18. Until judgment is given, the court or justice may remand the prisoner, bail him to appear from day to day, commit him to the sheriff of the county, or place him under such other care and custody as the circumstances of the case require.
MA Gen L ch 248 § 19 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 19 - Bail

Section 19. If the prisoner is detained for a cause or crime for which he is bailable, he shall be admitted to bail if sufficient bail is offered; and if not, he shall be remanded with an order of the court or justice expressing the amount in which he shall be held to bail and the court at which he shall be required to appear; and any magistrate authorized to admit to bail may, at any time before the sitting of said court, bail the prisoner pursuant to such order.